summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-restore-site2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site
index 2ca7655..fc35e76 100755
--- a/share/hydractl/backup-restore-site
+++ b/share/hydractl/backup-restore-site
@@ -78,7 +78,7 @@ if [ -f "$RESTOREDIR/var/backups/mysql/sqldump/$SITE.sql.gz" ]; then
cp $RESTOREDIR/var/backups/mysql/sqldump/$SITE.sql.gz $TMPWORK
( cd $TMPWORK && gunzip $SITE.sql.gz )
hydra_truncate_database $SITE
- mysql $SITE < $TMPWORK.sql
+ mysql $SITE < $TMPWORK/$SITE.sql
hydra_unset_tmpfile $TMPWORK
else
echo "Databases should be manually restored"