1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-23 07:27:05 +00:00

Allow customizations to Roundcube settings to persist between updates by including a configuration override file, if it exists (#2333)

This commit is contained in:
Crag-Monkey 2024-03-10 07:02:16 -05:00 committed by GitHub
parent 1053340124
commit 1b8cdeb644
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,6 +145,9 @@ cat > $RCM_CONFIG <<EOF;
\$config['session_path'] = '/mail/';
/* prevent CSRF, requires php 7.3+ */
\$config['session_samesite'] = 'Strict';
/* Persist Customizations */
\$file = __DIR__.'/config_override.inc.php';
\if(file_exists($file)) { include $file; }
?>
EOF
@ -166,6 +169,9 @@ cat > ${RCM_PLUGIN_DIR}/carddav/config.inc.php <<EOF;
'preemptive_auth' => '1',
'hide' => false,
);
/* Persist Customizations */
\$file = __DIR__.'/config_override.inc.php';
\if(file_exists($file)) { include $file; }
?>
EOF