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:
parent
5398bac533
commit
38584cb3af
@ -58,6 +58,8 @@ RUN for verb in help \
|
|||||||
|
|
||||||
RUN printf "%b" '#!'"/usr/bin/env sh\n \
|
RUN printf "%b" '#!'"/usr/bin/env sh\n \
|
||||||
if [ \"\$1\" = \"daemon\" ]; then \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 \
|
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \
|
||||||
crond && while true; do sleep 1; done;\n \
|
crond && while true; do sleep 1; done;\n \
|
||||||
else \n \
|
else \n \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user