fix; put the at daemon where it should be

This commit is contained in:
Cyber 2024-07-18 07:00:58 +00:00
parent 9dbd553371
commit d93b4e988d

View File

@ -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 '[^"]*$') 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 atd
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') -f /root/container-expire-notifs/notify.sh