From 8c24e605fb6d2ad07013b16cfc18d917124b9cd3 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Fri, 21 Oct 2022 03:16:07 -0700 Subject: [PATCH] Update 'scripts/gogsinstall.sh' --- scripts/gogsinstall.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/gogsinstall.sh b/scripts/gogsinstall.sh index 82a5f85..2a0d3ce 100644 --- a/scripts/gogsinstall.sh +++ b/scripts/gogsinstall.sh @@ -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 )