Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update roundcube_errors_log path for Roundcube 1.4 compatibility #2990

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Daniel15
Copy link

@Daniel15 Daniel15 commented Apr 3, 2021

No description provided.

@@ -26,3 +26,5 @@ exim_main_log = /var/log/exim4/mainlog
# was in debian squeezy but not in wheezy
# /etc/proftpd/proftpd.conf (SystemLog)
proftpd_log = /var/log/proftpd/proftpd.log

roundcube_errors_log = /var/log/roundcube/errors.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is default path now (distribution irrelevant)? Doesn't it?

For instance here some hint (at least before roundcube/roundcubemail#7009 it was still called errors) - https://github.com/roundcube/roundcubemail/blob/2321bce4694ee9f155284a7b8c55637c47672e79/INSTALL#L83

If so we'd rather need to change it here -

roundcube_errors_log = /var/log/roundcube/errors

Copy link
Author

@Daniel15 Daniel15 Apr 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is somewhat distro-specific, but maybe it should just be changed in the paths-common.conf anyways. By default, the Roundcube logs directory is within the Roundcube app directory. So for example, if you install Roundcube at /opt/roundcube/, the logs will be at /opt/roundcube/logs/. Debian installs Roundcube to /var/lib/roundcube/, and /var/lib/roundcube/logs/ is a symlink to /var/log/roundcube. I'm not sure if all distros do that.

Having said all that, it looks like they started adding the .log suffix in Roundcube 1.4 beta in 2017 (roundcube/roundcubemail#313). It looks like Debian Buster still includes the old 1.3 (which doesn't have this option) as it was likely 1.4 was still in beta at the time of the Buster freeze, however backports and Bullseye both include 1.4.

Is there a way to specify two file names? I guess it should use both /var/log/roundcube/errors.log and /var/log/roundcube/errors to handle both old and new versions of Roundcube.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it is there:

roundcube_errors_log = /var/log/roundcube/errors
                       /var/log/roundcube/errors.log

unsure it is possible with wildcards in glob pattern (since we need to exclude rotated and zipped logs)

@Daniel15 Daniel15 changed the title Add Debian roundcube_errors_log path Update roundcube_errors_log path for Roundcube 1.4 compatibility Apr 3, 2021
@Daniel15
Copy link
Author

Daniel15 commented Apr 3, 2021

@sebres Thanks for your feedback. I updated the PR to modify paths-common.conf instead 😄

@Neustradamus
Copy link

Any progress on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants