blob: 25d5ef9282c9bcd7302881a88612ca295e90710e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- 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'
|