From 1da1574875feb3d8abd0c4e205e882557db8c9a7 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 9 Dec 2018 13:17:15 +0800 Subject: [PATCH] Update index.py --- plugins/csvn/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/csvn/index.py b/plugins/csvn/index.py index 509bc8389..91a93c824 100755 --- a/plugins/csvn/index.py +++ b/plugins/csvn/index.py @@ -8,6 +8,7 @@ import binascii import json import re import sys +import subprocess sys.path.append(os.getcwd() + "/class/core") import public @@ -74,7 +75,8 @@ def csvnOp(method): #_csvn = getServerDir() + '/bin/csvn' #_csvn_httpd = getServerDir() + '/bin/csvn-httpd' - ret_csvn_httpd = public.execShell(_initd_csvn + ' ' + method) + #subprocess.Popen('ping -c4 blog.linuxeye.com',shell=True) + ret_csvn_httpd = public.execShell(_initd_csvn_httpd + ' ' + method) ret_csvn = public.execShell(_initd_csvn + ' ' + method) if ret_csvn[1] == '' and ret_csvn_httpd[1] == '': return 'ok'