removed unused functions

This commit is contained in:
2025-07-23 15:20:20 +02:00
parent 575329adf4
commit bd0b0cc6a8

View File

@@ -6,38 +6,25 @@ GREEN='\033[0;32m'
RED='\033[0;31m' RED='\033[0;31m'
NOCOL='\033[0m' NOCOL='\033[0m'
Fail() { case $1 in
echo -e "${RED}command not entered, exitting${NOCOL}" install)
exit 1 echo -e "${GREEN}Starting installation of $2${NOCOL}"
} sleep 2
bash -c "$(curl -fsSL $CODE/$2/install.sh)"
Exec() { exit 0;;
case $1 in setup)
install) echo -n "Git username: "
echo -e "${GREEN}Starting installation of $2${NOCOL}" read USER
sleep 2 echo -n "Git password: "
bash -c "$(curl -fsSL $CODE/$2/install.sh)" read -s PASS
exit 0;; echo -e "${GREEN}Starting setup of $2${NOCOL}"
setup) sleep 2
echo -n "Git username: " curl -u $USER:$PASS -so /tmp/$2.tmp $SECRET/$2/setup.env
read USER bash -c "$(curl -fsSL $CODE/$2/setup.sh)"
echo -n "Git password: " rm -f /tmp/$1.tmp
read -s PASS exit 0;;
echo -e "${GREEN}Starting setup of $2${NOCOL}" *)
sleep 2 echo -r "${RED}application name not entered, exitting${NOCOL}"
curl -u $USER:$PASS -so /tmp/$2.tmp $SECRET/$2/setup.env exit 1;;
bash -c "$(curl -fsSL $CODE/$2/setup.sh)" esac
rm -f /tmp/$1.tmp exit 0
exit 0;;
*)
echo -r "${RED}application name not entered, exitting${NOCOL}"
exit 1;;
esac
}
if [[ -z $1 ]]
then
Fail
else
Exec $1
fi