Skip to content
Snippets Groups Projects
Commit 9b4fe1dc authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix restore script

parent 1cbab37e
No related branches found
No related tags found
No related merge requests found
......@@ -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" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment