Verified Commit d61418ef authored by paz's avatar paz
Browse files

Make basedir of list-logs configurable.

parent 871e16cc
......@@ -10,6 +10,7 @@ The format of this file is based on [Keep a Changelog](http://keepachangelog.com
### Added
* Include tarball into release.
* Make basedir of list-logs configurable (`listlogs_dir`). No operational change with the default value.
### Changed
......
# Where are the list-directories stored (contain log-files and GnuPG-keyrings).
lists_dir: /var/schleuder/lists
# Where to write list-logs. The actual log-file will be <lists_logs_base_dir>/<hostname>/<listname>/list.log.
listlogs_dir: /var/schleuder/lists
# Schleuder reads plugins also from this directory.
plugins_dir: /etc/schleuder/plugins
......
......@@ -16,6 +16,10 @@ module Schleuder
instance.config['lists_dir']
end
def self.listlogs_dir
instance.config['listlogs_dir']
end
def self.plugins_dir
instance.config['plugins_dir']
end
......
......@@ -74,7 +74,7 @@ module Schleuder
end
def logfile
@logfile ||= File.join(self.listdir, 'list.log')
@logfile ||= File.join(Conf.listlogs_dir, self.email.split('@').reverse, 'list.log')
end
def logger
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment