@@ -85,6 +85,8 @@ function upgrade_mailpile {
function_check set_repo_commit
set_repo_commit /var/www/$MAILPILE_DOMAIN_NAME/mail "mailpile commit" "$MAILPILE_COMMIT" $MAILPILE_REPO
+
+ chown -R mailpile:mailpile /var/www/$MAILPILE_DOMAIN_NAME/mail
}
function backup_local_mailpile {