18 lines
306 B
Bash
18 lines
306 B
Bash
#!/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 |