diff --git a/autoShutdown b/autoShutdown index fd5cbb3..5b54c67 100755 --- a/autoShutdown +++ b/autoShutdown @@ -1,12 +1,15 @@ #!/bin/bash - +while true +do +sleep 1800 tasks="$(proxmox-backup-manager task list --output-format json)" if [ "$tasks" == '[]' ] then - sleep 300; + sleep 120; tasks="$(proxmox-backup-manager task list --output-format json)"; if [ "$tasks" == '[]' ] then sudo shutdown now; fi fi +done \ No newline at end of file