aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nxapi/fix-config-location.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nxapi/fix-config-location.patch')
-rw-r--r--testing/nxapi/fix-config-location.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/nxapi/fix-config-location.patch b/testing/nxapi/fix-config-location.patch
new file mode 100644
index 0000000000..31ad21afdb
--- /dev/null
+++ b/testing/nxapi/fix-config-location.patch
@@ -0,0 +1,26 @@
+--- nxapi/setup.py
++++ nxapi/setup.py.new
+@@ -6,18 +6,18 @@
+ import pprint
+
+ f = {}
+-data_files = [('/usr/local/nxapi/', ['nx_datas/country2coords.txt']),
+- ('/usr/local/etc/', ['nxapi.json'])]
++data_files = [('/etc/nginx/nxapi/', ['nx_datas/country2coords.txt']),
++ ('/etc/nginx/nxapi/', ['nxapi.json'])]
+ #modules = []
+ for dirname, dirnames, filenames in os.walk('tpl/'):
+ for filename in filenames:
+ if filename.endswith(".tpl"):
+ print dirname+"#"+filename
+- if "/usr/local/nxapi/"+dirname not in f.keys():
++ if "/etc/nginx/nxapi/"+dirname not in f.keys():
+
+- f["/usr/local/nxapi/"+dirname] = []
++ f["/etc/nginx/nxapi/"+dirname] = []
+
+- f["/usr/local/nxapi/"+dirname].append(os.path.join(dirname, filename))
++ f["/etc/nginx/nxapi/"+dirname].append(os.path.join(dirname, filename))
+
+ for z in f.keys():
+ data_files.append( (z, f[z]))