diff --git a/migrate-gitlab-gitea.sh b/bin/migrate-gitlab-gitea.sh similarity index 100% rename from migrate-gitlab-gitea.sh rename to bin/migrate-gitlab-gitea.sh diff --git a/bin/update-gitea.sh b/bin/update-gitea.sh new file mode 100755 index 0000000..d5fc23d --- /dev/null +++ b/bin/update-gitea.sh @@ -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 \ No newline at end of file