ROUNDCUBE_PROVISION_CONFIG='/var/www/roundcubemail/config/config.inc.php.provision'
RANDOM_KEY=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-24})

cat << EOF >> ${ROUNDCUBE_PROVISION_CONFIG}
<?php
// AUTOGENERATED CONFIG FILE
\$config['des_key']          = "${RANDOM_KEY}";
\$config['log_driver']       = "syslog";
\$config['force_https']      = false;
\$config['use_https']        = false;
\$config['password_charset'] = "UTF-8";
\$config['default_charset']  = "UTF-8";
\$config['smtp_user']        = '%u';
\$config['smtp_pass']        = '%p';

\$config['plugins'] = array(
	'managesieve',
	'zipdownload',
	'html5_notifier'
);

EOF

ROUNDCUBE_PROVISION_CONFIG='/var/www/roundcubemail/config/config.inc.php.provision'
RANDOM_KEY=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-24})

cat << EOF >> ${ROUNDCUBE_PROVISION_CONFIG}
<?php
// AUTOGENERATED CONFIG FILE
\$config['des_key']          = "${RANDOM_KEY}";
\$config['log_driver']       = "syslog";
\$config['force_https']      = false;
\$config['use_https']        = false;
\$config['password_charset'] = "UTF-8";
\$config['default_charset']  = "UTF-8";
\$config['smtp_user']        = '%u';
\$config['smtp_pass']        = '%p';

\$config['plugins'] = array(
	'managesieve',
	'zipdownload',
	'html5_notifier',
	'serverinfo',
	'thunderbird_labels'
);

EOF

--- 
+++ 
@@ -16,9 +16,7 @@
 \$config['plugins'] = array(
 	'managesieve',
 	'zipdownload',
-	'html5_notifier',
-	'serverinfo',
-	'thunderbird_labels'
+	'html5_notifier'
 );
 
 EOF
Remove unused or not installed plugins from the configuration file
