From d93b4e988df9543b54e2afc439760a593cd064de Mon Sep 17 00:00:00 2001 From: Cyber Date: Thu, 18 Jul 2024 07:00:58 +0000 Subject: [PATCH] fix; put the at daemon where it should be --- enable-expire-notifs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enable-expire-notifs.sh b/enable-expire-notifs.sh index a715805..809efd5 100755 --- a/enable-expire-notifs.sh +++ b/enable-expire-notifs.sh @@ -19,7 +19,7 @@ echo $API_KEY > .api-key date=$(curl -sH "x-ssh-auth: $API_KEY" $API_HOST/time | grep -o '"expireDate":"[^"]*' | grep -o '[^"]*$') -echo atd >> /start.sh +[ if ! grep atd /start.sh ] sed -i -e 's/#s2lmain/atd/g' /start.sh atd at -t $(date -d $date +'%Y%m%d%H%M') -f /root/container-expire-notifs/notify.sh