From 85bed9645976e6d7ebc88143e70d715607c400d9 Mon Sep 17 00:00:00 2001 From: Cyber Date: Fri, 16 Aug 2024 07:02:12 +0000 Subject: [PATCH] fix: set the next notif for 6 days instead of 7 --- notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify.sh b/notify.sh index 1a81ad5..a148c34 100755 --- a/notify.sh +++ b/notify.sh @@ -16,4 +16,4 @@ fi notif "Hello, your container at SSH.SURF has hit its expire date, if not extended before 6PM EST the container will be removed automatically. Use /extend to gain another 7 days." date=$(curl -sH "x-ssh-auth: $API_KEY" $API_HOST/time | grep -o '"expireDate":"[^"]*' | grep -o '[^"]*$') -at -t $(date -d $date +'%Y%m%d%H%M' -d "$end_date+7 days") -f /var/tools/container-expire-notifs/notify.sh +at -t $(date -d $date +'%Y%m%d%H%M' -d "$end_date+6 days") -f /var/tools/container-expire-notifs/notify.sh