Update index.py

This commit is contained in:
midoks
2019-08-05 22:30:07 +08:00
parent 01ba165a62
commit cb83450368
+2 -2
View File
@@ -83,7 +83,7 @@ def initDreplace():
if not os.path.exists(initD_path):
os.mkdir(initD_path)
user = 'www'
user = 'solr'
if public.getOs() == 'darwin':
user = public.execShell(
"who | sed -n '2, 1p' |awk '{print $1}'")[0].strip()
@@ -181,7 +181,7 @@ def collectionList():
data['ip'] = public.getLocalIp()
data['port'] = '8983'
content = public.readFile(path+'/solr.xml')
content = public.readFile(path + '/solr.xml')
rep = "jetty.port:(.*)\}</int>"
tmp = re.search(rep, content)