that is aquard

This commit is contained in:
root
2022-05-25 12:52:18 +02:00
parent a444c62b58
commit b0e08611f8
2 changed files with 12 additions and 12 deletions

12
autoShutdown Executable file
View File

@@ -0,0 +1,12 @@
#!/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