]> hackdaworld.org Git - outofuni/backup.git/commitdiff
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 4489388ed213b91a74d9e4f515bca478bc3e84be..cd96256c5e8b0d102ea6db675e6bbb599f4a0e87 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