Update 'scripts/gogsinstall.sh'

This commit is contained in:
Sophia Atkinson 2022-10-21 03:05:17 -07:00
parent 074b903e0a
commit 287b38a58e
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
VER="0.12.10"
while true while true
do do
read -r -p "Would you like to install Gogs? [Y/n] " input read -r -p "Would you like to install Gogs? [Y/n] " input
@ -16,9 +18,9 @@ do
;; ;;
esac esac
done done
sudo apt install wget -y sudo apt install wget -y
export VER=0.12.10 sudo wget https://dl.gogs.io/$VER/gogs_$VER_linux_amd64.tar.gz
sudo wget https://dl.gogs.io/0.12.10/gogs_{VER}_linux_amd64.tar.gz
tar xvf linux_amd64.tar.gz tar xvf linux_amd64.tar.gz
sudo apt install git -y sudo apt install git -y
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git