- Using borg command as catch-all for borgmatic.\n- Fixed bug in if statement.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user