* #2868 Create logrotate config for roundcube * Add info message * Clean up session when mail-wrapper.php runs
@@ -0,0 +1,7 @@
+/var/log/roundcube/*.log {
+ rotate 12
+ monthly
+ missingok
+ notifempty
+ create 644 www-data www-data
+}
@@ -36,4 +36,11 @@ for version in $($HESTIA/bin/v-list-sys-php plain); do
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 100M/g" /etc/php/$version/fpm/php.ini
sed -i "s/post_max_size = 8M/post_max_size = 100M/g" /etc/php/$version/fpm/php.ini
sed -i "s/max_execution_time = 30$/max_execution_time = 60/g" /etc/php/$version/fpm/php.ini
-done
+done
+
+if [ -d /etc/roundcube ]; then
+ if [ ! -f /etc/logrotate.d/roundcube ]; then
+ echo "[ * ] Create config roundcube logrotate file"
+ cp -f $HESTIA_INSTALL_DIR/logrotate/roundcube /etc/logrotate.d/
+ fi
+fi
@@ -39,3 +39,5 @@ $mailtext = file_get_contents("php://stdin");
if ((!empty($to)) && (!empty($subject))) {
send_email($to,$subject,$mailtext,$from, $from_name);
}
+session_destroy();