From 0bece429b6d3ec626b3d05550f970ab951feffad Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Mon, 16 May 2022 00:55:30 +0100 Subject: [PATCH] [Proxmox Timed Shutdown] - Ammended timings --- ProxmoxTimedShutdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProxmoxTimedShutdown.sh b/ProxmoxTimedShutdown.sh index c497fdc..a97abe1 100644 --- a/ProxmoxTimedShutdown.sh +++ b/ProxmoxTimedShutdown.sh @@ -1,9 +1,9 @@ #!/bin/bash CURRENT_TIME=$(date +%H:%M) -if [[ $CURRENT_TIME < "00:00" ]] || [[ $CURRENT_TIME > "23:45" ]]; then +if [[ $CURRENT_TIME > "00:00" ]] && [[ $CURRENT_TIME < "8:30" ]]; then echo "Triggering scheduled post-backup shutdown" - shutdown -h now + shutdown -P 01:00 else echo "Automatic shutdown not triggered due to current time" fi \ No newline at end of file