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,13 +1,22 @@
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to install Gitea? (y/n) " go
while true
do
read -r -p "Would you like to install Gitea? [Y/n] " input
case $input in
[yY][eE][sS]|[yY])
break
;;
[nN][oO]|[nN])
break
;;
*)
echo "That wasnt an option"
;;
esac
done
if [ "$go" == 'n' ]; then
exit
fi
sudo systemctl stop gitea
sudo ufw allow 3000
sudo wget -O /usr/local/bin/gitea https://dl.gitea.io/gitea/1.17.3/gitea-1.17.3-linux-amd64