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
1 changed files with 6 additions and 0 deletions

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