YunoHost-Apps/roundcube_ynh

Impossible to use a dedicated config file

nicofrand opened this issue · 1 comments

Describe the bug

While trying to use a different configuration file (the disclaimer states I can use config/local.inc.php) I saw that the file is not 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.

Context

I use nicofrand.eu as the yunohost root path but misc.nicofrand.eu/webmail for Roundcube.

When using misc.nicofrand.eu.inc.php instead of local.inc.php, the file is read (my custom IMAP configuration still does not though).

Expected behavior

The disclaimer to be right about the filename to use. Maybe even create an empty file with the domain on which roundcube was installed?

Steps to reproduce

In config/config.inc.php I had to add $config['include_host_config'] = true; (https://github.com/roundcube/roundcubemail/wiki/Configuration%3A-Multi-Domain-Setup).

Just want to add that I had to manually modify permissions for the custom config file manually using chmod g+w <DOMAIN>.inc.php to make it work.