roundcube: Configure to log to journald

Tests:

- On a fresh container, install roundcube. log_driver is set to syslog in
freedombox-config.conf.

- Install roundcube without the changes. Enable local only. Apply the changes
and restart service. roundcube setup is run. log_driver is set to syslog in
freedombox-config.conf. Setting is still local-only.

- Install roundcube without the changes. Disable local only. Apply the changes
and restart service. roundcube setup is run. log_driver is set to syslog in
freedombox-config.conf. Setting is still not local-only.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-07-17 17:22:30 -04:00
1 parent 8c4999eabd
commit 253ddb0c18
2 files changed
+8 -3

No files matched your search

+5 -2
View File
@@ -70,9 +70,12 @@ def subcommand_get_config(_):
def subcommand_set_config(arguments):
"""Set the configuration."""
config = '<?php\n'
config = '''<?php
$config['log_driver'] = 'syslog';
'''
if arguments.local_only == 'True':
config = '''<?php
config += '''
$config['default_host'] = 'localhost';
$config['mail_domain'] = '%n';