Update 'scripts/giteainstall.sh'

This commit is contained in:
Sophia Atkinson 2022-10-20 10:57:59 -07:00
parent 0996fcec37
commit 2a1f896c2d
1 changed files with 15 additions and 6 deletions

View File

@ -1,12 +1,21 @@
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to install Gitea? (y/n) " go
done
while true
do
read -r -p "Would you like to install Gitea? [Y/n] " input
if [ "$go" == 'n' ]; then
exit
fi
case $input in
[yY][eE][sS]|[yY])
break
;;
[nN][oO]|[nN])
break
;;
*)
echo "That wasnt an option"
;;
esac
done
sudo systemctl stop gitea
sudo ufw allow 3000