From 7689731038456412b241b1d6492e0a662bcdc700 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 3 Sep 2021 18:37:05 +0200 Subject: [PATCH] check that scodoc7 is stopped, and disable it in systemd after migration --- tools/migrate_from_scodoc7.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/migrate_from_scodoc7.sh b/tools/migrate_from_scodoc7.sh index f7b271d66..da3cd7758 100755 --- a/tools/migrate_from_scodoc7.sh +++ b/tools/migrate_from_scodoc7.sh @@ -57,6 +57,8 @@ then echo "migration en place" INPLACE=1 SCODOC7_HOME=/opt/scodoc7 + # vérifie que ScoDoc7 est bien arrêté: + systemctl is-active scodoc >& /dev/null && systemctl stop scodoc else echo "Migration depuis archive $1" INPLACE=0 @@ -173,6 +175,14 @@ do systemctl restart postgresql 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) systemctl restart redis