From e60c46b3095d02998b15b47a94e3af3eacd701ad Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 11 Oct 2015 16:11:07 +0000 Subject: [PATCH] fixed check --- bin/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1