Update index.py

pull/5/head
midoks 6 years ago
parent fe939bc073
commit c4f11af537
  1. 4
      plugins/solr/index.py

@ -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)

Loading…
Cancel
Save