From 3835dfc0ec61e8d5876d38ab4217cd6e71a7cba4 Mon Sep 17 00:00:00 2001 From: deajan Date: Sun, 23 Jun 2013 23:52:00 +0200 Subject: [PATCH] Fixed GetDirectoriesSize malfunction with ssh filter --- obackup.sh | 4 ++-- obackup_ssh_filter.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/obackup.sh b/obackup.sh index 2f468a3..7a89859 100755 --- a/obackup.sh +++ b/obackup.sh @@ -391,7 +391,7 @@ function CreateLocalStorageDirectories function CheckSpaceRequirements { - if [ "$BACKUP_SQL" == "yes" ] + if [ "$BACKUP_SQL" != "no" ] then if [ -d $LOCAL_SQL_STORAGE ] then @@ -417,7 +417,7 @@ function CheckSpaceRequirements fi fi - if [ "$BACKUP_FILES" == "yes" ] + if [ "$BACKUP_FILES" != "no" ] then if [ -d $LOCAL_FILE_STORAGE ] then diff --git a/obackup_ssh_filter.sh b/obackup_ssh_filter.sh index ea80873..0a555bf 100755 --- a/obackup_ssh_filter.sh +++ b/obackup_ssh_filter.sh @@ -34,6 +34,8 @@ case ${SSH_ORIGINAL_COMMAND%% *} in Go ;; "mysql") Go ;; + "echo") + Go ;; "find") Go ;; "du")