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

pull/32/head
Paul Tiedtke 6 years ago committed by Saúl Ibarra Corretgé
parent da43e68854
commit ab5f248913
  1. 6
      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

Loading…
Cancel
Save