Update gitea-linux-amd64_upgrade.sh

This commit is contained in:
Ankit Patial 2025-02-20 11:59:41 +00:00
parent 6456269ede
commit 546d3c167f

View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
set V=1.23.4
# fetch binary
wget -O gitea https://dl.gitea.com/gitea/$V/gitea-$V-linux-amd64
chmod +x gitea
# stop service
sudo service gitea stop
# move file and change owner
mv gitea /usr/local/bin/gitea
chown root:git /usr/local/bin/gitea
# start service
sudo service gitea start