From f41f616daffea2e4c35c8d9761eec30c77ca6d61 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 8 Dec 2018 17:30:58 +0800 Subject: [PATCH] update --- plugins/csvn/index.html | 3 +-- plugins/csvn/index.py | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/plugins/csvn/index.html b/plugins/csvn/index.html index 1ea4b7717..bb1e7800d 100755 --- a/plugins/csvn/index.html +++ b/plugins/csvn/index.html @@ -2,8 +2,7 @@

服务

-

安装扩展

-

配置修改

+

自启动

diff --git a/plugins/csvn/index.py b/plugins/csvn/index.py index b496dacc5..1d631c9e2 100755 --- a/plugins/csvn/index.py +++ b/plugins/csvn/index.py @@ -1,7 +1,6 @@ # coding: utf-8 import time -import psutil import random import os import urllib @@ -14,6 +13,24 @@ sys.path.append(os.getcwd() + "/class/core") import public +def getPluginName(): + return 'csvn' + + +def getPluginDir(): + return public.getPluginDir() + '/' + getPluginName() + + +def getServerDir(): + return public.getServerDir() + '/' + getPluginName() + + +def getInitDFile(): + if app_debug: + return '/tmp/' + getPluginName() + return '/etc/init.d/' + getPluginName() + + def status(): return 'start' @@ -21,3 +38,5 @@ if __name__ == "__main__": func = sys.argv[1] if func == 'status': print status() + else: + print 'error'