From c6c16ca2e8049cd27196bdf4e514412acde56641 Mon Sep 17 00:00:00 2001 From: deajan Date: Sun, 23 Jun 2013 23:37:16 +0200 Subject: [PATCH] Added missing mysql command. --- obackup_ssh_filter.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/obackup_ssh_filter.sh b/obackup_ssh_filter.sh index 45c4a61..ea80873 100755 --- a/obackup_ssh_filter.sh +++ b/obackup_ssh_filter.sh @@ -19,16 +19,12 @@ LOG_FILE=~/.ssh/obackup_ssh_filter.log function Log { DATE=$(date) - if [ "$2" != "1" ] - then - echo "$1" - fi echo "$DATE - $1" >> $LOG_FILE } function Go { - $SSH_ORIGINAL_COMMAND + eval $SSH_ORIGINAL_COMMAND } case ${SSH_ORIGINAL_COMMAND%% *} in @@ -36,6 +32,8 @@ case ${SSH_ORIGINAL_COMMAND%% *} in Go ;; "mysqldump") Go ;; + "mysql") + Go ;; "find") Go ;; "du")