update script

This commit is contained in:
Matthias Kretschmann 2018-12-12 21:53:02 +01:00
parent 489c3d1bbc
commit a23f2aca69
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 23 additions and 0 deletions

23
bin/update-gitea.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# usage, run as user git:
#
# sudo service gitea stop
# ./update-gitea.sh 1.6.1
# sudo service gitea start
#
# su -c "./update-gitea.sh 1.6.1" -s /bin/sh git
#
set -e
version=$1
arch="linux-amd64"
giteaBinary="/home/git/gitea/gitea"
cd /home/git/gitea-update
wget -O "gitea-${version}-${arch}" "https://dl.gitea.io/gitea/${version}/gitea-${version}-${arch}"
cp "gitea-${version}-${arch}" $giteaBinary
chmod +x $giteaBinary