that is aquard
This commit is contained in:
parent
a444c62b58
commit
b0e08611f8
12
autoShutdown
Executable file
12
autoShutdown
Executable 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
|
Loading…
Reference in New Issue
Block a user