edit to work without cron but with service file

This commit is contained in:
Erik Foris 2022-05-25 12:10:17 +00:00
parent b0e08611f8
commit 29ca8a31f6

View File

@ -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