diff --git a/ProxmoxTimedShutdown.sh b/ProxmoxTimedShutdown.sh index a3bc431..23cb867 100644 --- a/ProxmoxTimedShutdown.sh +++ b/ProxmoxTimedShutdown.sh @@ -19,7 +19,7 @@ log "Waiting 1hr to allow user to cancel shutdown" sleep 1h # Main loop ################################################################ -for i in 1 2 3 4 +for i in 1 2 do if [ `ps -ef | grep vzdump | wc -l` -eq 1 ]; then log "Triggering scheduled post-backup shutdown" @@ -27,7 +27,7 @@ do exit 1 else log "Automatic shutdown delayed due to concurrent backup task" - sleep 15m + sleep 30m fi done