- 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 ################################################################
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user