Fix restore script

This commit is contained in:
Emmanuel Viennet 2023-04-14 14:18:08 +02:00
parent 1cbab37e2f
commit 9b4fe1dc5e

View File

@ -42,7 +42,7 @@ then
DB_DEST="SCODOC" DB_DEST="SCODOC"
else else
echo "restauration des données dans la configuration actuelle" 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" DB_DEST="$DB_CURRENT"
KEEP_ENV="Y" KEEP_ENV="Y"
if [ "$1" = "--keep-env" ] if [ "$1" = "--keep-env" ]