From ff87dbe25864bc1806002ee64b767f0a24fb18e3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 14 Dec 2018 18:38:27 +0800 Subject: [PATCH] Update index.py --- plugins/gogs/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index ba63ebb72..40593a43c 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -72,7 +72,7 @@ def status(): def initDreplace(): - file_tpl = getConf() + file_tpl = getInitdConf() service_path = public.getServerDir() initD_path = getServerDir() + '/init.d' @@ -98,7 +98,7 @@ def start(): data = public.execShell(file + ' start') if data[1] == '': return 'ok' - return 'fail' + return data[1] def stop():