Commit 7e4fcbb0 authored by Christian Jürges's avatar Christian Jürges
Browse files

conf from local etc

parent 3fcc1b29
Pipeline #171 skipped
...@@ -27,9 +27,10 @@ class App: ...@@ -27,9 +27,10 @@ class App:
'polling': '5', 'polling': '5',
'apachectl': '/usr/sbin/apache2ctl', 'apachectl': '/usr/sbin/apache2ctl',
'sudo': 'usr/bin/sudo'}) 'sudo': 'usr/bin/sudo'})
self.config.read('/etc/apacheocreloader.conf') confpath = os.path.dirname(__file__)+'/etc/apacheocreloader.conf'
self.config.read(confpath)
if len(self.config.sections()) == 0: if len(self.config.sections()) == 0:
print "missing config file /etc/apacheocreloader.conf\n" print "missing config file %s\n" % (confpath)
exit(-1) exit(-1)
self.sudo = self.config.get('apache', 'sudo') self.sudo = self.config.get('apache', 'sudo')
......
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