YunoHost-Apps / roundcube_ynh

Roundcube package for YunoHost
https://roundcube.net/
GNU Affero General Public License v3.0
11 stars 19 forks source link

Impossible to use a dedicated config file #183

Open nicofrand opened 9 months ago

nicofrand commented 9 months ago

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).

CodeShakingSheep commented 1 month ago

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.