fix; put the at daemon where it should be
This commit is contained in:
parent
9dbd553371
commit
d93b4e988d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user