From: hackbard Date: Sun, 11 Oct 2015 16:11:07 +0000 (+0000) Subject: fixed check X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e60c46b3095d02998b15b47a94e3af3eacd701ad;p=outofuni%2Fbackup.git fixed check --- diff --git a/bin/backup b/bin/backup index 4489388..cd96256 100755 --- a/bin/backup +++ b/bin/backup @@ -55,7 +55,7 @@ else log "host $host (via $remote) is online ..." fi -if [ ! -z "`ssh $user@$remote 'cat ~/.backup | grep ^no'`" ]; then +if [ ! -z "`ssh $user@$remote 'cat ~/.backup | grep ^off'`" ]; then log "backup rejected by client ..." exit 0 fi