fixed errors

This commit is contained in:
Sophia Atkinson 2023-08-04 01:30:15 -07:00
parent 205998f576
commit ece5f6ae68
17 changed files with 21 additions and 67 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Caddy Server? [Y/n] " input
@ -16,25 +16,7 @@ do
;;
esac
done
set -b
ping -c1 "github.com" &>"/dev/null"
ping -c1 "api.github.com" &>"/dev/null"
ping -c1 "raw.githubusercontent.com" &>"/dev/null"
if [[ "${?}" -ne 0 ]]; then
echo "I am unable to access one of the necessary domains that are needed to continue this Install."
elif [[ "${#args[@]}" -eq 0 ]]; then
# Check if curl is installed
if [ ! -x /usr/bin/curl ] ; then
CURL_NOT_EXIST=1
apt install -y curl
else
CURL_NOT_EXIST=0
fi
set -b
ping -c1 "go.dev" &>"/dev/null"
if [[ "${?}" -ne 0 ]]; then
echo "I am unable to access one of the necessary domains that are needed to continue this Install."
elif [[ "${#args[@]}" -eq 0 ]]; then
# Check if curl is installed
if [ ! -x /usr/bin/curl ] ; then
CURL_NOT_EXIST=1

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install fail2ban? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Gitea? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to uninstall Gitea? This is not reversible. [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to update Gitea? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Go Language? [Y/n] " input
@ -16,11 +16,7 @@ do
;;
esac
done
set -b
ping -c1 "go.dev" &>"/dev/null"
if [[ "${?}" -ne 0 ]]; then
echo "I am unable to access one of the necessary domains that are needed to continue this Install."
elif [[ "${#args[@]}" -eq 0 ]]; then
# Check if curl is installed
if [ ! -x /usr/bin/curl ] ; then
CURL_NOT_EXIST=1

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Hockeypuck? [Y/n] " input
@ -23,11 +23,6 @@ else
CURL_NOT_EXIST=0
fi
sudo apt-get install bzr git mercurial -y
set -b
ping -c1 "go.dev" &>"/dev/null"
if [[ "${?}" -ne 0 ]]; then
echo "I am unable to access one of the necessary domains that are needed to continue this Install."
elif [[ "${#args[@]}" -eq 0 ]]; then
# Check if curl is installed
if [ ! -x /usr/bin/curl ] ; then
CURL_NOT_EXIST=1

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Hugo? [Y/n] " input
@ -16,26 +16,6 @@ do
;;
esac
done
set -b
ping -c1 "github.com" &>"/dev/null"
ping -c1 "api.github.com" &>"/dev/null"
ping -c1 "raw.githubusercontent.com" &>"/dev/null"
if [[ "${?}" -ne 0 ]]; then
echo "I am unable to access one of the necessary domains that are needed to continue this Install."
elif [[ "${#args[@]}" -eq 0 ]]; then
# Check if curl is installed
if [ ! -x /usr/bin/curl ] ; then
CURL_NOT_EXIST=1
apt install -y curl
else
CURL_NOT_EXIST=0
fi
set -b
ping -c1 "go.dev" &>"/dev/null"
if [[ "${?}" -ne 0 ]]; then
echo "I am unable to access one of the necessary domains that are needed to continue this Install."
elif [[ "${#args[@]}" -eq 0 ]]; then
# Check if curl is installed
if [ ! -x /usr/bin/curl ] ; then
CURL_NOT_EXIST=1
apt install -y curl
@ -43,6 +23,7 @@ else
CURL_NOT_EXIST=0
fi
apt remove golang -y
apt autoremove -y
rm -rf /tmp/go/
mkdir /tmp/go/
cd /tmp/go/
@ -77,5 +58,4 @@ fi
cd /tmp/hugo/
tar -xzf /tmp/hugo/*.tar.gz
sudo mv /tmp/hugo/hugo /usr/local/bin
cd ~
fi
cd ~

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Librenms? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install MariaDB? [Y/n] " input
@ -16,7 +16,6 @@ do
;;
esac
done
apt update && apt upgrade -y
sudo apt install wget software-properties-common dirmngr ca-certificates apt-transport-https mariadb-server mariadb-client -y
echo -e "=================================================================="

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Mastodon? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Misskey? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install MongoDB? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install phpMyAdmin? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to uninstall phpMyAdmin? [Y/n] " input

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to Update phpMyAdmin? [Y/n] " input

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
trap 'exit 130' INT
while true
do
read -r -p "Would you like to install Wordpress? [Y/n] " input