1
0
forked from ScoDoc/ScoDoc

check that scodoc7 is stopped, and disable it in systemd after migration

This commit is contained in:
Emmanuel Viennet 2021-09-03 18:37:05 +02:00
parent b8310064ee
commit 7689731038

View File

@ -57,6 +57,8 @@ then
echo "migration en place" echo "migration en place"
INPLACE=1 INPLACE=1
SCODOC7_HOME=/opt/scodoc7 SCODOC7_HOME=/opt/scodoc7
# vérifie que ScoDoc7 est bien arrêté:
systemctl is-active scodoc >& /dev/null && systemctl stop scodoc
else else
echo "Migration depuis archive $1" echo "Migration depuis archive $1"
INPLACE=0 INPLACE=0
@ -173,6 +175,14 @@ do
systemctl restart postgresql systemctl restart postgresql
done done
# --- Si migration "en place", désactive ScoDoc 7
if [ "$INPLACE" == 1 ]
then
systemctl disable scodoc
fi
# Précaution a priori inutile (import-scodoc7-dept efface les caches) # Précaution a priori inutile (import-scodoc7-dept efface les caches)
systemctl restart redis systemctl restart redis