Update index.py

This commit is contained in:
midoks 2018-12-09 13:28:36 +08:00
parent abb9fb72f0
commit a985511b3b
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ def csvnOp(method):
ret_csvn_httpd = public.execShell(_initd_csvn_httpd + ' ' + method)
# ret_csvn = public.execShell(_initd_csvn + ' ' + method)
subprocess.Popen(_initd_csvn + ' ' + method, shell=True)
subprocess.Popen(_initd_csvn + ' ' + method,
stdout=subprocess.PIPE, shell=True)
if ret_csvn_httpd[1] == '':
return 'ok'
return 'fail'