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