Browse Source

no error if no dmar dir, fix #271

pull/276/head
Luke Smith 1 year ago
parent
commit
3f2b10f854
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      emailwiz.sh

+ 2
- 1
emailwiz.sh View File

@@ -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



Loading…
Cancel
Save