pureftp 自启动 done

pull/109/head
Mr Chen 6 years ago
parent 92ce0fc62c
commit a46afc279c
  1. 1
      class/core/config_api.py
  2. 2
      plugins/pureftp/index.py

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

@ -166,6 +166,7 @@ def initdInstall():
initd_bin = getInitDFile() initd_bin = getInitDFile()
shutil.copyfile(source_bin, initd_bin) shutil.copyfile(source_bin, initd_bin)
public.execShell('chmod +x ' + initd_bin) public.execShell('chmod +x ' + initd_bin)
public.execShell('chkconfig --add ' + getPluginName())
return 'ok' return 'ok'
@ -176,6 +177,7 @@ def initdUinstall():
return "Apple Computer does not support" return "Apple Computer does not support"
initd_bin = getInitDFile() initd_bin = getInitDFile()
os.remove(initd_bin) os.remove(initd_bin)
public.execShell('chkconfig --del ' + getPluginName())
return 'ok' return 'ok'

Loading…
Cancel
Save