pull/109/head
midoks 6 years ago
parent 0aacc0dae7
commit 35d75781f0
  1. 5
      plugins/solr/index.py

@ -84,7 +84,7 @@ def initDreplace():
os.mkdir(initD_path)
user = 'solr'
if public.getOs() == 'darwin':
if public.isAppleSystem():
user = public.execShell(
"who | sed -n '2, 1p' |awk '{print $1}'")[0].strip()
@ -128,6 +128,9 @@ def initDreplace():
content = public.readFile(solr_jetty_context_xml_tpl)
public.writeFile(solr_jetty_context_xml, content)
if not public.isAppleSystem():
public.execShell('chown -R solr:solr ' + getServerDir())
return file_bin

Loading…
Cancel
Save