Added flush and doctor in upgrade.
This commit is contained in:
parent
3d6a821a06
commit
158d8e28fe
1 changed files with 6 additions and 0 deletions
6
upgrade
6
upgrade
|
@ -26,12 +26,18 @@ else
|
||||||
# gpg --keyserver keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
|
# gpg --keyserver keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
|
||||||
gpg --verify gitea-$VERSION-linux-amd64.asc gitea-$VERSION-linux-amd64
|
gpg --verify gitea-$VERSION-linux-amd64.asc gitea-$VERSION-linux-amd64
|
||||||
|
|
||||||
|
# Flush queues.
|
||||||
|
su - git -c "cd /srv/gitea/bin ; $BINDIR/gitea -c /etc/gitea/gitea.ini manager flush-queues"
|
||||||
|
|
||||||
# Stop.
|
# Stop.
|
||||||
systemctl stop gitea
|
systemctl stop gitea
|
||||||
|
|
||||||
# Dump.
|
# Dump.
|
||||||
su - git -c "cd /srv/gitea/bin ; $BINDIR/gitea dump --tempdir $GITEA_HOME/tmp/ -c /etc/gitea/gitea.ini"
|
su - git -c "cd /srv/gitea/bin ; $BINDIR/gitea dump --tempdir $GITEA_HOME/tmp/ -c /etc/gitea/gitea.ini"
|
||||||
|
|
||||||
|
# Call doctor.
|
||||||
|
su - git -c "cd /srv/gitea/bin ; $BINDIR/gitea doctor --all --fix -c /etc/gitea/gitea.ini"
|
||||||
|
|
||||||
# Upgrade.
|
# Upgrade.
|
||||||
chmod u+x gitea-$VERSION-linux-amd64
|
chmod u+x gitea-$VERSION-linux-amd64
|
||||||
chown git.gitea gitea-$VERSION-linux-amd64
|
chown git.gitea gitea-$VERSION-linux-amd64
|
||||||
|
|
Loading…
Reference in a new issue