diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index 00dfef0b6..9d1c18ec3 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -249,7 +249,6 @@ def start(): return data['msg'] data = public.execShell(__SR + file + ' start') - print data if data[1] == '': return 'ok' return data[0] diff --git a/plugins/gogs/init.d/gogs.tpl b/plugins/gogs/init.d/gogs.tpl index aa4d8190c..f457b16a5 100644 --- a/plugins/gogs/init.d/gogs.tpl +++ b/plugins/gogs/init.d/gogs.tpl @@ -75,9 +75,8 @@ stop() { pids=`ps -ef|grep 'gogs web' |grep -v grep|awk '{print $2}'` arr=($pids) - echo -e "Stopping gogs... \c"; - - ifor p in ${arr[@]} + echo -e "Stopping gogs... \c" + for p in ${arr[@]} do kill -9 $p done