aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-site
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 18:54:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 18:54:39 -0300
commita39c76509a417de3f5233d049514efb3e5b6c146 (patch)
tree599037c4dd6634a83348e76a281969c053acd2ba /share/hydractl/backup-restore-site
parent6d662c4458c2d8a0eb2afe7ce092b807195cb55a (diff)
downloadhydra-a39c76509a417de3f5233d049514efb3e5b6c146.tar.gz
hydra-a39c76509a417de3f5233d049514efb3e5b6c146.tar.bz2
Minor fix
Diffstat (limited to 'share/hydractl/backup-restore-site')
-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"