fixed check
authorhackbard <hackbard@hackdaworld.org>
Sun, 11 Oct 2015 16:11:07 +0000 (16:11 +0000)
committerhackbard <hackbard@hackdaworld.org>
Sun, 11 Oct 2015 16:11:07 +0000 (16:11 +0000)
bin/backup

index 4489388..cd96256 100755 (executable)
@@ -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