1
0
forked from ScoDoc/ScoDoc

Fix upgrade script

This commit is contained in:
Emmanuel Viennet 2024-08-25 02:33:16 +02:00
parent 91af5704dc
commit 8c256fe711
2 changed files with 7 additions and 9 deletions

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.7.10" SCOVERSION = "9.7.11"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"

View File

@ -24,14 +24,12 @@ export DEBIAN_FRONTEND=noninteractive
check_uid_root "$0" check_uid_root "$0"
if [ -z "$SCODOC_UPGRADE_RUNNING" ] apt-get update && apt-get -y dist-upgrade || alarm_admin "apt-get dist-upgrade failed"
then
apt-get update && apt-get -y dist-upgrade
# install spécifiquement scodoc9, utile si les dépendances Debian de scodoc9 # install spécifiquement scodoc9, utile si les dépendances Debian de scodoc9
# ont été changées, ce qui peut provoquer un # ont été changées, ce qui peut provoquer un
# "packages have been kept back" # "packages have been kept back"
apt install scodoc9 || alarm_admin "apt install scodoc9 failed" apt install scodoc9 || alarm_admin "apt install scodoc9 failed"
fi
systemctl restart redis systemctl restart redis
systemctl restart nginx systemctl restart nginx
systemctl restart scodoc9 systemctl restart scodoc9