From aee262aacc72cde369658132bb98f3efee0322ae Mon Sep 17 00:00:00 2001 From: Cyber Date: Thu, 25 Jul 2024 00:54:26 -0400 Subject: [PATCH] fix: setting next notificatiom task --- notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify.sh b/notify.sh index 3e7fa6d..f10cdae 100755 --- a/notify.sh +++ b/notify.sh @@ -4,4 +4,4 @@ API_KEY=$(cat .api-key) 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') -f /root/container-expire-notifs/notify.sh +at -t $(date -d $date +'%Y%m%d%H%M' -d "$end_date+7 days") -f /root/container-expire-notifs/notify.sh