forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
17 lines
613 B
Python
17 lines
613 B
Python
--- agent.py.orig 2014-10-24 11:01:07 UTC
|
|
+++ agent.py
|
|
@@ -64,10 +64,10 @@
|
|
|
|
config = ConfigParser.ConfigParser()
|
|
|
|
- if os.path.exists('/etc/sd-agent/conf.d/'):
|
|
- configPath = '/etc/sd-agent/conf.d/'
|
|
- elif os.path.exists('/etc/sd-agent/config.cfg'):
|
|
- configPath = '/etc/sd-agent/config.cfg'
|
|
+ if os.path.exists('%%PREFIX%%/etc/sd-agent/conf.d/'):
|
|
+ configPath = '%%PREFIX%%/etc/sd-agent/conf.d/'
|
|
+ elif os.path.exists('%%PREFIX%%/etc/sd-agent/config.cfg'):
|
|
+ configPath = '%%PREFIX%%/etc/sd-agent/config.cfg'
|
|
else:
|
|
configPath = path + '/config.cfg'
|
|
|