summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-11 13:38:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-11 13:38:46 -0300
commit1e4b2aead3632aa1b50363ae5a8adc20a900e130 (patch)
treecade96b0cadbbfaab987217ea0acaace23b9f099
parent359fb2757c41a8b92a780673d6d2739b6fdac660 (diff)
downloadhydra-1e4b2aead3632aa1b50363ae5a8adc20a900e130.tar.gz
hydra-1e4b2aead3632aa1b50363ae5a8adc20a900e130.tar.bz2
Fixing database comparison
-rw-r--r--lib/hydra/backup2
-rwxr-xr-xshare/hydractl/backup-restore-database1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index 3f2d91f..0fb6e80 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -156,7 +156,7 @@ function hydra_backup_restore_database {
fi
# Restore database
- if [ ! -z "$DB_DUMP_EXT" ]; then
+ if [ ! -z "$DB_DUMP_EXTRACT" ]; then
echo "Restoring database $DATABASE..."
hydra_set_tmpfile $DATABASE -d
cp $DB_DUMP_BASE/$DATABASE.sql$DB_DUMP_EXT $TMPWORK
diff --git a/share/hydractl/backup-restore-database b/share/hydractl/backup-restore-database
index f7fe1c3..1912529 100755
--- a/share/hydractl/backup-restore-database
+++ b/share/hydractl/backup-restore-database
@@ -38,4 +38,3 @@ fi
# Restore database
hydra_backup_restore_database $DATABASE
-