run 264 B

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