diff --git a/plugins/solr/index.py b/plugins/solr/index.py index 49f4430c8..5146fa9e6 100755 --- a/plugins/solr/index.py +++ b/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