From fb310b1026f464dcfc22e8cd19db246d62a4b5ee Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 25 Aug 2015 15:57:05 +0200 Subject: [PATCH] Reverted commands for obackup --- ssh_filter.sh | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/ssh_filter.sh b/ssh_filter.sh index 6fc092c..416a814 100755 --- a/ssh_filter.sh +++ b/ssh_filter.sh @@ -33,19 +33,13 @@ function Go case ${SSH_ORIGINAL_COMMAND%% *} in "$RSYNC_EXECUTABLE") Go ;; - "echo") - Go ;; "find") Go ;; "du") Go ;; - "mkdir") + "mysql") Go ;; - "rm") - Go ;; - "df") - Go ;; - "mv") + "mysqldump") Go ;; "$CMD1") if [ "$CMD1" != "" ] @@ -74,19 +68,10 @@ case ${SSH_ORIGINAL_COMMAND%% *} in elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo find"* ]] then Go - elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mkdir"* ]] + elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mysql"* ]] then Go - elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo rm"* ]] - then - Go - elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo echo"* ]] - then - Go - elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo df"* ]] - then - Go - elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mv"* ]] + elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mysqldump"* ]] then Go elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo $CMD1"* ]]