From 9b4fe1dc5e0660acf69b76bcfa8f5c62f669e843 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 14 Apr 2023 14:18:08 +0200 Subject: [PATCH] Fix restore script --- tools/restore_scodoc9_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/restore_scodoc9_data.sh b/tools/restore_scodoc9_data.sh index 87f95a79..04f68183 100755 --- a/tools/restore_scodoc9_data.sh +++ b/tools/restore_scodoc9_data.sh @@ -42,7 +42,7 @@ then DB_DEST="SCODOC" else echo "restauration des données dans la configuration actuelle" - DB_CURRENT=$(su -c "(cd $SCODOC_DIR && source venv/bin/activate && flask scodoc-database -n)") + DB_CURRENT=$(su -c "(cd $SCODOC_DIR && source venv/bin/activate && flask scodoc-database -n)" "$SCODOC_USER") DB_DEST="$DB_CURRENT" KEEP_ENV="Y" if [ "$1" = "--keep-env" ]