Update index.py

pull/109/head
midoks 7 years ago
parent 1da1574875
commit c9d1d30f80
  1. 6
      plugins/csvn/index.py

@ -75,10 +75,10 @@ def csvnOp(method):
#_csvn = getServerDir() + '/bin/csvn'
#_csvn_httpd = getServerDir() + '/bin/csvn-httpd'
#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] == '':
# ret_csvn = public.execShell(_initd_csvn + ' ' + method)
subprocess.Popen(_initd_csvn + ' ' + method, shell=True)
if ret_csvn_httpd[1] == '':
return 'ok'
return 'fail'

Loading…
Cancel
Save