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`
This commit is contained in:
Jake Buchholz 2020-04-02 18:35:35 -07:00
parent 5398bac533
commit 38584cb3af

View File

@ -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 \