forked from ScoDoc/ScoDoc
Fix restore script
This commit is contained in:
parent
1cbab37e2f
commit
9b4fe1dc5e
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user