run 269 B

12345678910
  1. #!/usr/bin/with-contenv bash
  2. if [[ $DISABLE_HTTPS -ne 1 ]] && \
  3. [[ $ENABLE_LETSENCRYPT -eq 1 ]]; then
  4. exec cron -f
  5. else
  6. # if cron should not be started,
  7. # prevent s6 from restarting this script again and again
  8. s6-svc -O /var/run/s6/services/cron
  9. fi