From 27eacad0f30dd8f57b5b0aaf7d356aff4bf8f7ba Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 3 Jan 2015 12:39:09 +0000 Subject: [PATCH] Permissions on archives --- install-freedombone.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 46ea5cf6..71a0f26f 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -4289,6 +4289,7 @@ function email_archiving { echo '#!/bin/bash' > /etc/cron.daily/archivemail echo "MUTTRC=/home/$MY_USERNAME/.muttrc" >> /etc/cron.daily/archivemail echo "python /usr/bin/cleanup-maildir --archive-folder='archive' --maildir-root='/home/$MY_USERNAME/Maildir' archive ''" >> /etc/cron.daily/archivemail + echo "chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Maildir/archive-*" >> /etc/cron.daily/archivemail echo 'if [ -f $MUTTRC ]; then' >> /etc/cron.daily/archivemail echo ' MUTT_MAILBOXES=$(grep "mailboxes =" $MUTTRC)' >> /etc/cron.daily/archivemail echo ' BACKUP_DIRECTORY=archive-$(date +"%Y")' >> /etc/cron.daily/archivemail