Fork 0

use a switch instead of an environment variable

the switch is more reliable (the migrate step would fail if the switch
was removed, the step would not fail if the environment variable was
This commit is contained in:
Pierre-Louis Bonicoli 2022-03-09 02:34:01 +01:00
parent 2f6bbf644f
commit 3c28a545d7
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ function check() {
function upgrade() {
set -ex
su - gitea -c "WORKDIR=$WORKDIR $BINDIR/gitea-$VERSION-linux-amd64 --config /etc/gitea/gitea.ini migrate"
su - gitea -c "$BINDIR/gitea-$VERSION-linux-amd64 --config /etc/gitea/gitea.ini --work-path $WORKDIR migrate"
ln --force $BINDIR/gitea-$VERSION-linux-amd64 $BINDIR/gitea
set +x