Skip to content

Commit 6eaf813

Browse files
authored
Merge pull request hestiacp#1978 from Lupul/210709-crontab-reports
[Fix] Explicitly disable cron reports
2 parents cb0f85d + d1b62ad commit 6eaf813

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
1515

1616
- Revert #1943 and rework it to fix possible errors occuring on v-rebuild-cron-jobs.
1717
- Fixed #1956 to prevent reset of defined webmail client.
18+
- Explicitly disable cron reports #1978
1819

1920
## [1.4.4] - Service release
2021

func/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ sync_cron_jobs() {
622622
if [ "$CRON_REPORTS" = 'yes' ]; then
623623
echo "MAILTO=$CONTACT" > $crontab
624624
echo 'CONTENT_TYPE="text/plain; charset=utf-8"' >> $crontab
625+
else
626+
echo 'MAILTO=""' > $crontab
625627
fi
626628

627629
while read line; do

0 commit comments

Comments
 (0)