Open CodeShakingSheep opened 11 months ago
I don't think config/local.inc.php
is read at all.
To confirm it I put (and then removed ofc) file_put_contents("/tmp/test-roundcube-config.txt", "config file read");
at the beginning of config/config.inc.php
and file_put_contents("/tmp/test-roundcube-local.txt", "local config file read");
in config/local.inc.php
(with the same rights) and only /tmp/test-roundcube-config.txt
was created.
Also the configuration directory is now config
and not conf
like stated in the disclaimer.
Describe the bug
The readme states
And it gives this example for adding a plugin:
However, this doesn't seem to work in my case. I installed this plugin
twofactor_gauthenticator
with composer. Then I createdconfig/local.inc.php
and put in the following:However, the plugin didn't appear in the settings. When I added it to the plugin section in
config/conf.inc.php
it showed up and worked.Can anybody reproduce this? Could it be related to the renaming of the folder? The readme states
conf/local.inc.php
while the folder seems to have been renamed toconfig
. I wanted to create a PR updating the readme with the correct folder name but doesn't make sense if it's not working. Any suggestions?Context
Steps to reproduce
Inside roundcube directory run
./composer.phar require alexandregz/twofactor_gauthenticator
as roundcube user./plugins
folder runchown -R roundcube:www-data twofactor_gauthenticator/
andchmod o-rx twofactor_gauthenticator/
config/local.inc.php
with this:config/conf.inc.php
instead ofconfig/local.inc.php
Expected behavior
The plugin should be activated in Roundcube when adding it inside
/config/local.inc.php
.