updated Gitea version.

This commit is contained in:
2023-01-20 16:01:40 -08:00
parent 2bf73b8a3b
commit 6418a4c975
3 changed files with 16 additions and 5 deletions

View File

@ -15,7 +15,12 @@ do
;;
esac
done
GITEA_VER="1.18.1"
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.18.2"
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
@ -24,5 +29,6 @@ sudo chmod -R 750 /var/lib/gitea
sudo chown -R root:git /etc/gitea
sudo chmod -R 770 /etc/gitea
sudo systemctl start gitea
fi
echo "Gitea has been updated!"