web: run cron only when HTTPS and Let's Encrypt are enabled

This commit is contained in:
Paul Tiedtke
2018-12-03 10:06:36 +01:00
committed by Saúl Ibarra Corretgé
parent da43e68854
commit ab5f248913

View File

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