This commit is contained in:
Mr Chen
2019-02-03 02:05:17 +08:00
parent 8144de6ced
commit c76ed0ae97
2 changed files with 8 additions and 4 deletions
+5 -4
View File
@@ -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()
+3
View File
@@ -11,6 +11,9 @@ sysName=`uname`
install_tmp=${rootPath}/tmp/bt_install.pl
yum install -y postgresql-libs unixODBC
Install_sphinx()
{