Update 'scripts/giteainstall.sh'

This commit is contained in:
2022-10-20 10:57:59 -07:00
parent 0996fcec37
commit 2a1f896c2d

View File

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