Move configuration to /etc/aurweb/config

Since d4fe77a (Reorganize Git interface scripts, 2016-10-08), the key
components of the aurweb SSH interface are installed system-wide. Update
the default configuration path to point to a central location.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2016-10-17 15:01:45 +02:00
parent 9581069f49
commit 85866796a4
5 changed files with 7 additions and 6 deletions

View file

@ -12,8 +12,7 @@ def _get_parser():
if 'AUR_CONFIG' in os.environ:
path = os.environ.get('AUR_CONFIG')
else:
relpath = "/../conf/config"
path = os.path.dirname(os.path.realpath(__file__)) + relpath
path = "/etc/aurweb/config"
_parser.read(path)
return _parser