mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:24:54 +00:00
Docker crontab fixes
Reinstall crontab when container is run in 'daemon' mode. This is necessary to... * use a new random minute instead of the one determined at build time * respect any acme.sh environment variables being passed to the container.
This commit is contained in:
parent
ca19bbd366
commit
182d7d9b56
@ -58,6 +58,8 @@ RUN for verb in help \
|
||||
|
||||
RUN printf "%b" '#!'"/usr/bin/env sh\n \
|
||||
if [ \"\$1\" = \"daemon\" ]; then \n \
|
||||
acme.sh --uninstall-cronjob \n \
|
||||
acme.sh --install-cronjob \n \
|
||||
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \
|
||||
crond && while true; do sleep 1; done;\n \
|
||||
else \n \
|
||||
|
Loading…
x
Reference in New Issue
Block a user