diff options
author | Roland Tapken <roland@bitarbeiter.net> | 2018-02-09 16:09:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-02 18:27:06 +0200 |
commit | d17856a1e9b846a1e4420107a88686822effe444 (patch) | |
tree | 6c8ea48c465e9b592e24a942b37772a22ab05220 /config | |
parent | c2ef47ee13799bf0b5a0dbe97e54a021c888d8eb (diff) | |
download | nextcloud-server-d17856a1e9b846a1e4420107a88686822effe444.tar.gz nextcloud-server-d17856a1e9b846a1e4420107a88686822effe444.zip |
Make logfile's mode configurable.
The file logger currently resets the mode of the logfile to 0640.
When the webserver is running as a different user than the cron job
(but both are in the same group) the files mode has to be 0660. The
current implementation breaks logging for the user that is not the
owner of the logfile.
This patch introduces a new config option 'logfilemode' that expects
an octal value (defaults to 0640). Unless the value is lower or equal
than 0 the logfiles mode will be resetted to this value.
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 874fbc04e50..9a5648c95df 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -729,6 +729,13 @@ $CONFIG = array( 'logfile' => '/var/log/nextcloud.log', /** + * Log file mode for the Nextcloud loggin type in octal notation. + * + * Defaults to 0640 (writeable by user, readable by group). + */ +'logfilemode' => 0640, + +/** * Loglevel to start logging at. Valid values are: 0 = Debug, 1 = Info, 2 = * Warning, 3 = Error, and 4 = Fatal. The default value is Warning. * |