aboutsummaryrefslogtreecommitdiffstats
path: root/community/nxapi/fix-config-location.patch
blob: 31ad21afdb1df81cfa5bcbb6ea1c6e29b9689520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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]))