summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 18:50:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 18:50:39 -0300
commit262d50c987461e7ef7aad0f970d0cddea765cfe1 (patch)
tree8e1ddac4398a235aac196a2f651191c9a5be0aaf
parente1b01e7d0a2a4f96be4683ee22429c36a7ad3627 (diff)
downloadhydra-262d50c987461e7ef7aad0f970d0cddea765cfe1.tar.gz
hydra-262d50c987461e7ef7aad0f970d0cddea765cfe1.tar.bz2
Setting BASEDIR at backup-restore-site
-rwxr-xr-xshare/hydractl/backup-restore-site1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site
index 15c0d97..2ca7655 100755
--- a/share/hydractl/backup-restore-site
+++ b/share/hydractl/backup-restore-site
@@ -73,6 +73,7 @@ fi
# Restore database
if [ -f "$RESTOREDIR/var/backups/mysql/sqldump/$SITE.sql.gz" ]; then
+ BASEDIR="$FOLDER"
hydra_set_tmpfile $SITE -d
cp $RESTOREDIR/var/backups/mysql/sqldump/$SITE.sql.gz $TMPWORK
( cd $TMPWORK && gunzip $SITE.sql.gz )