forked from Sophia/thelinuxlist
Update 'scripts/gogsinstall.sh'
This commit is contained in:
parent
1bcd73c279
commit
8c24e605fb
|
@ -17,7 +17,8 @@ do
|
|||
done
|
||||
|
||||
sudo apt install wget -y
|
||||
sudo wget -O linux_amd64.tar.gz https://dl.gogs.io/0.12.10/gogs_0.12.10_linux_amd64.tar.gz
|
||||
GOGS_VER="0.12.10"
|
||||
sudo wget -O linux_amd64.tar.gz https://dl.gogs.io/$GOGS_VER/gogs_"$GOGS_VER"_linux_amd64.tar.gz
|
||||
tar xvf linux_amd64.tar.gz
|
||||
sudo apt install git -y
|
||||
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git
|
||||
|
@ -30,6 +31,7 @@ sudo ufw allow 3000
|
|||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable gogs
|
||||
sudo systemctl start gogs
|
||||
rm -rf gogs linux_amd64.tar.gz
|
||||
|
||||
echo -e "=================================================================="
|
||||
publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/ || curl -sS --connect-timeout 10 -m 60 https://api.ipify.org )
|
||||
|
|
Loading…
Reference in New Issue