1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-20 12:10:31 -04:00
ports/sysutils/sd-agent/files/patch-agent.py
Matthew Seaman 79260ee9b5 New port: sd-agent
Server Density Agent for FreeBSD

Monitor CPU, memory, disk usage, network, Apache, MySQL + more via the
ServerDensity platform.

WWW: https://www.serverdensity.com/
2014-10-24 16:02:32 +00:00

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'