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