dev-ops/ gitea-linux-amd64_upgrade.sh

18 lines
306 B
Bash
Raw Permalink Normal View History

2025-02-20 11:59:41 +00:00
#!/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