From fead1854e5c337a3e49e921b3e072902de198f1e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 15 Mar 2019 16:54:00 +0800 Subject: [PATCH] =?UTF-8?q?sphinx=20=E8=87=AA=E5=90=AF=E5=8A=A8=20done?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/core/config_api.py | 3 ++- plugins/gogs/index.py | 2 ++ plugins/sphinx/index.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/class/core/config_api.py b/class/core/config_api.py index 4a6b1c48a..f4b2ad2ca 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -21,7 +21,8 @@ class config_api: # mysql 自启动 done # memcached 自启动 done # redis 自启动 done - # pureftp 自启动 done + # pureftp 自启动 done + # sphinx 自启动 done __version = '0.5.2' def __init__(self): diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index 55b3368fa..740bbae7f 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -300,6 +300,7 @@ def initdInstall(): initd_bin = getInitDFile() shutil.copyfile(mem_bin, initd_bin) public.execShell('chmod +x ' + initd_bin) + public.execShell('chkconfig --add ' + getPluginName()) return 'ok' @@ -310,6 +311,7 @@ def initdUinstall(): return "Apple Computer does not support" initd_bin = getInitDFile() os.remove(initd_bin) + public.execShell('chkconfig --del ' + getPluginName()) return 'ok' diff --git a/plugins/sphinx/index.py b/plugins/sphinx/index.py index 442b98b26..4df7235f8 100755 --- a/plugins/sphinx/index.py +++ b/plugins/sphinx/index.py @@ -206,6 +206,7 @@ def initdInstall(): initd_bin = getInitDFile() shutil.copyfile(source_bin, initd_bin) public.execShell('chmod +x ' + initd_bin) + public.execShell('chkconfig --add ' + getPluginName()) return 'ok' @@ -215,6 +216,7 @@ def initdUinstall(): return "Apple Computer does not support" initd_bin = getInitDFile() os.remove(initd_bin) + public.execShell('chkconfig --del ' + getPluginName()) return 'ok'