Browse Source

Fix Docker crontab Entry

* avoids using the hardcoded default minute set when image is built - everyone gets a different minute every time they `docker run neilpang/acme.sh:latest daemon`
* allows specification of LE_CONFIG_HOME environment variable if configuration home is not at image build-time default - `docker run -e LE_CONFIG_HOME=/tmp neilpang/acme.sh:latest daemon`
pull/2834/head
Jake Buchholz 6 years ago
parent
commit
38584cb3af
  1. 2
      Dockerfile

2
Dockerfile

@ -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 --config-home \"\$LE_CONFIG_HOME\" \n \
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \
crond && while true; do sleep 1; done;\n \
else \n \

Loading…
Cancel
Save