Reverted commands for obackup

This commit is contained in:
deajan 2015-08-25 15:57:05 +02:00
parent c00a00525c
commit fb310b1026
1 changed files with 4 additions and 19 deletions

View File

@ -33,19 +33,13 @@ function Go
case ${SSH_ORIGINAL_COMMAND%% *} in case ${SSH_ORIGINAL_COMMAND%% *} in
"$RSYNC_EXECUTABLE") "$RSYNC_EXECUTABLE")
Go ;; Go ;;
"echo")
Go ;;
"find") "find")
Go ;; Go ;;
"du") "du")
Go ;; Go ;;
"mkdir") "mysql")
Go ;; Go ;;
"rm") "mysqldump")
Go ;;
"df")
Go ;;
"mv")
Go ;; Go ;;
"$CMD1") "$CMD1")
if [ "$CMD1" != "" ] if [ "$CMD1" != "" ]
@ -74,19 +68,10 @@ case ${SSH_ORIGINAL_COMMAND%% *} in
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo find"* ]] elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo find"* ]]
then then
Go Go
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mkdir"* ]] elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mysql"* ]]
then then
Go Go
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo rm"* ]] elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mysqldump"* ]]
then
Go
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo echo"* ]]
then
Go
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo df"* ]]
then
Go
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo mv"* ]]
then then
Go Go
elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo $CMD1"* ]] elif [[ "$SSH_ORIGINAL_COMMAND" == "sudo $CMD1"* ]]