Automatic_PBS_Poweroff/autoShutdown
2022-05-25 12:52:18 +02:00

13 lines
246 B
Bash
Executable File

#!/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