summaryrefslogtreecommitdiff
path: root/sysutils/sd-agent/files/patch-agent.py
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2014-10-24 16:02:32 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2014-10-24 16:02:32 +0000
commit79260ee9b59014ae81ade1f0228e0aaf32fa878d (patch)
treea08827f5b8154a0becef4a7059182143922de2ea /sysutils/sd-agent/files/patch-agent.py
parent- Update to 0.92.1 (diff)
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/
Notes
Notes: svn path=/head/; revision=371446
Diffstat (limited to 'sysutils/sd-agent/files/patch-agent.py')
-rw-r--r--sysutils/sd-agent/files/patch-agent.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/sd-agent/files/patch-agent.py b/sysutils/sd-agent/files/patch-agent.py
new file mode 100644
index 000000000000..25d5ef9282c9
--- /dev/null
+++ b/sysutils/sd-agent/files/patch-agent.py
@@ -0,0 +1,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'
+