From ab5f248913fcde7ba6658f4092bb59e09353e098 Mon Sep 17 00:00:00 2001 From: Paul Tiedtke Date: Mon, 3 Dec 2018 10:06:36 +0100 Subject: [PATCH] web: run cron only when HTTPS and Let's Encrypt are enabled --- web/rootfs/etc/services.d/cron/run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/rootfs/etc/services.d/cron/run b/web/rootfs/etc/services.d/cron/run index 8efe6bf..636376b 100755 --- a/web/rootfs/etc/services.d/cron/run +++ b/web/rootfs/etc/services.d/cron/run @@ -1,3 +1,7 @@ #!/usr/bin/with-contenv bash -exec cron -f +if [[ $DISABLE_HTTPS -ne 1 ]]; then + if [[ $ENABLE_LETSENCRYPT -eq 1 ]]; then + exec cron -f + fi +fi