- Using borg command as catch-all for borgmatic.\n- Fixed bug in if statement.

This commit is contained in:
2024-06-13 21:58:15 +01:00
parent 52a3aa179e
commit 6cc96716ba
+2 -2
View File
@@ -16,10 +16,10 @@ fi
############################################################################ ############################################################################
# Main loop ################################################################ # 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" log "Triggering scheduled post-backup shutdown"
shutdown now shutdown now
exit 1 exit 0
else else
log "Automatic shutdown cancelled due to concurrent backup task" log "Automatic shutdown cancelled due to concurrent backup task"
exit 2 exit 2