From 81d41f0885ac3970536d32301102bd3197062de3 Mon Sep 17 00:00:00 2001 From: Jakub Fojt Date: Sun, 12 Jul 2020 21:27:31 +0000 Subject: [PATCH] Extend by 30 mins instead of 10 --- autoshutdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoshutdown.sh b/autoshutdown.sh index ae85b28..d074476 100755 --- a/autoshutdown.sh +++ b/autoshutdown.sh @@ -16,8 +16,8 @@ silent_exitcode() { } extend_ttl() { - # Extend time to live 10 minutes at a time - new_ttl="$(date -d '+10 min' +%s)" + # Extend time to live 30 minutes at a time + new_ttl="$(date -d '+30 min' +%s)" old_ttl="$(date -d "$(cat "$LIVE_UNTIL")" +%s)" if [ ! -f "$LIVE_UNTIL" ] || [ "$new_ttl" -ge "$old_ttl" ]; then # If LIVE_UNTIL file not existing or new time to live longer