summaryrefslogtreecommitdiff
path: root/emailwiz.sh
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-03-29 15:06:51 -0400
committerLuke Smith <luke@lukesmith.xyz>2023-03-29 15:06:51 -0400
commit3f2b10f85438f1879cf825149fbec7120248734d (patch)
treeed7468c336c1351416d426a2c7c1148fe758dd86 /emailwiz.sh
parent4414b31a4a812de785ddf2afea48bcfc87e58b8f (diff)
no error if no dmar dir, fix #271
Diffstat (limited to 'emailwiz.sh')
-rw-r--r--emailwiz.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 6681dc9..d3927fa 100644
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -328,7 +328,8 @@ useradd -m -G mail dmarc
cat <<EOF > /etc/cron.weekly/dmarc-clean
#!/bin/sh
-find /home/dmarc/Mail -type f -mtime +30 -name '*.mail*' -delete
+find /home/dmarc/Mail -type f -mtime +30 -name '*.mail*' -delete >/dev/null 2>&1
+exit 0
EOF
chmod 755 /etc/cron.weekly/dmarc-clean