freebsd-ports/net-mgmt/observium/files/patch-poller-wrapper.py
Mark Felder 7029273742 net-mgmt/observium: Update to 0.17.9.8859
- Fixes fetching as upstream always replaces/re-rolls distfile
- Now reportedly works with PHP 7.1

PR:		224223
MFH:		2017Q4
2017-12-17 15:13:36 +00:00

11 lines
400 B
Python

--- poller-wrapper.py.orig 2017-12-02 14:04:45 UTC
+++ poller-wrapper.py
@@ -72,6 +72,8 @@ except:
print("threading, sys, subprocess, os, json")
sys.exit(2)
+os.environ['PATH'] += ':%%LOCALBASE%%/sbin:%%LOCALBASE%%/bin'
+
"""
Register global exepthook for ability stop execute wrapper by Ctrl+C
See: https://stackoverflow.com/questions/6598053/python-global-exception-handling