diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-11 13:38:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-11 13:38:46 -0300 |
commit | 1e4b2aead3632aa1b50363ae5a8adc20a900e130 (patch) | |
tree | cade96b0cadbbfaab987217ea0acaace23b9f099 | |
parent | 359fb2757c41a8b92a780673d6d2739b6fdac660 (diff) | |
download | hydra-1e4b2aead3632aa1b50363ae5a8adc20a900e130.tar.gz hydra-1e4b2aead3632aa1b50363ae5a8adc20a900e130.tar.bz2 |
Fixing database comparison
-rw-r--r-- | lib/hydra/backup | 2 | ||||
-rwxr-xr-x | share/hydractl/backup-restore-database | 1 |
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 - |