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 ignored).
This commit is contained in:
parent
2f6bbf644f
commit
3c28a545d7
@ -54,7 +54,7 @@ function check() {
|
|||||||
|
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
set -ex
|
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
|
ln --force $BINDIR/gitea-$VERSION-linux-amd64 $BINDIR/gitea
|
||||||
set +x
|
set +x
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user