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