Automatic_PBS_Poweroff/autoShutdown

13 lines
246 B
Plaintext
Raw Normal View History

2022-05-25 12:52:18 +02:00
#!/bin/bash
tasks="$(proxmox-backup-manager task list --output-format json)"
if [ "$tasks" == '[]' ]
then
sleep 300;
tasks="$(proxmox-backup-manager task list --output-format json)";
if [ "$tasks" == '[]' ]
then
sudo shutdown now;
fi
fi