diff --git a/tools/restore_scodoc9_data.sh b/tools/restore_scodoc9_data.sh index 87f95a796..04f68183d 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" ]