net-mgmt/observium: Fix poller-wrapper.py
It was attempting to set PATH before importing os module Reported by: Adrian Murphy <amurphy [AT] gsoft com au>
This commit is contained in:
parent
077d7b7303
commit
60ec7d981b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427825
2 changed files with 14 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= observium
|
||||
PORTVERSION= 0.16.10.8128
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= http://www.observium.org/
|
||||
DISTNAME= ${PORTNAME}-community-latest
|
||||
|
|
|
@ -1,11 +1,18 @@
|
|||
--- poller-wrapper.py.orig 2014-11-04 16:14:27 UTC
|
||||
--- poller-wrapper.py.orig 2016-12-05 00:19:29 UTC
|
||||
+++ poller-wrapper.py
|
||||
@@ -38,6 +38,8 @@ except:
|
||||
print "threading, Queue, sys, subprocess, time, os, json"
|
||||
@@ -45,6 +45,8 @@ except:
|
||||
print("threading, sys, subprocess, time, os, json")
|
||||
sys.exit(2)
|
||||
|
||||
+os.environ['PATH'] += ':%%LOCALBASE%%/sbin:%%LOCALBASE%%/bin'
|
||||
+
|
||||
try:
|
||||
import MySQLdb
|
||||
except:
|
||||
# start time
|
||||
s_time = time.time()
|
||||
|
||||
@@ -608,4 +610,4 @@ db.close()
|
||||
# Return exit code
|
||||
sys.exit(exit_code)
|
||||
|
||||
-# EOF
|
||||
\ No newline at end of file
|
||||
+# EOF
|
||||
|
|
Loading…
Reference in a new issue