From a4c2839d212758baca6901022a2d8a94af93a3c1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 19 Dec 2019 09:56:38 +0100 Subject: [PATCH] Hide warning if year maildir already exists GLPI #40270 --- root/etc/cron.monthly/maillog-rotate | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/root/etc/cron.monthly/maillog-rotate b/root/etc/cron.monthly/maillog-rotate index 3744a16..1f7afe2 100644 --- a/root/etc/cron.monthly/maillog-rotate +++ b/root/etc/cron.monthly/maillog-rotate @@ -24,10 +24,9 @@ fi MONTH=$(date +%m) YEAR=$(date +%Y) -su - -s /bin/bash $USER -c "maildirmake -f $YEAR $HOME/Maildir" +su - -s /bin/bash $USER -c "maildirmake -f $YEAR $HOME/Maildir" 2>&1 > /dev/null su - -s /bin/bash $USER -c "maildirmake -f $YEAR.$MONTH $HOME/Maildir" - # Lock mail delivery chmod +t $HOME cd $HOME