From 6cc96716bad91cacd537c37c1087b91600c74c2a Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Thu, 13 Jun 2024 21:58:15 +0100 Subject: [PATCH] - Using borg command as catch-all for borgmatic.\n- Fixed bug in if statement. --- SynologyTimedShutdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SynologyTimedShutdown.sh b/SynologyTimedShutdown.sh index c3c452e..7da4185 100644 --- a/SynologyTimedShutdown.sh +++ b/SynologyTimedShutdown.sh @@ -16,10 +16,10 @@ fi ############################################################################ # Main loop ################################################################ -if [ `ps -ef | grep borgmatic | wc -l` > 1 ]; then +if [ `ps -ef | grep borg | wc -l` -eq 1 ]; then log "Triggering scheduled post-backup shutdown" shutdown now - exit 1 + exit 0 else log "Automatic shutdown cancelled due to concurrent backup task" exit 2