Explorar o código

Merge pull request #1978 from Lupul/210709-crontab-reports

[Fix] Explicitly disable cron reports
Jaap Marcus %!s(int64=4) %!d(string=hai) anos
pai
achega
6eaf813be5
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      CHANGELOG.md
  2. 2 0
      func/main.sh

+ 1 - 0
CHANGELOG.md

@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
 
 - Revert #1943 and rework it to fix possible errors occuring on v-rebuild-cron-jobs.
 - Fixed #1956 to prevent reset of defined webmail client.
+- Explicitly disable cron reports #1978
 
 ## [1.4.4] - Service release
 

+ 2 - 0
func/main.sh

@@ -622,6 +622,8 @@ sync_cron_jobs() {
     if [ "$CRON_REPORTS" = 'yes' ]; then
         echo "MAILTO=$CONTACT" > $crontab
         echo 'CONTENT_TYPE="text/plain; charset=utf-8"' >> $crontab
+    else
+        echo 'MAILTO=""' > $crontab
     fi
     
     while read line; do