update script
This commit is contained in:
parent
489c3d1bbc
commit
a23f2aca69
23
bin/update-gitea.sh
Executable file
23
bin/update-gitea.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user