소스 검색

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

Paul Tiedtke 6 년 전
부모
커밋
ab5f248913
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      web/rootfs/etc/services.d/cron/run

+ 5 - 1
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