sphinx 自启动 done

pull/109/head
Mr Chen 6 years ago
parent a46afc279c
commit fead1854e5
  1. 1
      class/core/config_api.py
  2. 2
      plugins/gogs/index.py
  3. 2
      plugins/sphinx/index.py

@ -22,6 +22,7 @@ class config_api:
# memcached 自启动 done
# redis 自启动 done
# pureftp 自启动 done
# sphinx 自启动 done
__version = '0.5.2'
def __init__(self):

@ -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'

@ -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'

Loading…
Cancel
Save