diff --git a/plugins/sphinx/index.py b/plugins/sphinx/index.py index 1930eafca..442b98b26 100755 --- a/plugins/sphinx/index.py +++ b/plugins/sphinx/index.py @@ -129,10 +129,11 @@ def initDreplace(): file_bin = initD_path + '/' + getPluginName() # initd replace - content = public.readFile(file_tpl) - content = contentReplace(content) - public.writeFile(file_bin, content) - public.execShell('chmod +x ' + file_bin) + if not os.path.exists(file_bin): + content = public.readFile(file_tpl) + content = contentReplace(content) + public.writeFile(file_bin, content) + public.execShell('chmod +x ' + file_bin) # config replace conf_bin = getConf() diff --git a/plugins/sphinx/install.sh b/plugins/sphinx/install.sh index c8971749b..aad8d8f5b 100755 --- a/plugins/sphinx/install.sh +++ b/plugins/sphinx/install.sh @@ -11,6 +11,9 @@ sysName=`uname` install_tmp=${rootPath}/tmp/bt_install.pl +yum install -y postgresql-libs unixODBC + + Install_sphinx() {