diff --git a/scripts/giteainstall.sh b/scripts/giteainstall.sh index 985e9f9..97f044f 100644 --- a/scripts/giteainstall.sh +++ b/scripts/giteainstall.sh @@ -16,15 +16,16 @@ do ;; esac done +set -b ping -c1 "github.com" &>"/dev/null" if [[ "${?}" -ne 0 ]]; then echo "I am unable to access Github.com, that is needed to continue this Install." elif [[ "${#args[@]}" -eq 0 ]]; then -GITEA_VER="1.19.0" +GITEA_VER="1.19.1" sudo systemctl stop gitea sudo apt-get install git -y -sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64 +sudo wget -O /usr/local/bin/gitea htt://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64 sudo chmod +x /usr/local/bin/gitea sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git sudo mkdir -p /var/lib/gitea/{custom,data,log} diff --git a/scripts/giteaupdate.sh b/scripts/giteaupdate.sh index b8a0a5a..f2ecb79 100644 --- a/scripts/giteaupdate.sh +++ b/scripts/giteaupdate.sh @@ -20,7 +20,7 @@ ping -c1 "github.com" &>"/dev/null" if [[ "${?}" -ne 0 ]]; then echo "I am unable to access Github.com, that is needed to continue this Install." elif [[ "${#args[@]}" -eq 0 ]]; then -GITEA_VER="1.19.0" +GITEA_VER="1.19.1" sudo systemctl stop gitea sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64 sudo chmod +x /usr/local/bin/gitea