Update index.py

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

@ -8,6 +8,7 @@ import binascii
import json import json
import re import re
import sys import sys
import subprocess
sys.path.append(os.getcwd() + "/class/core") sys.path.append(os.getcwd() + "/class/core")
import public import public
@ -74,7 +75,8 @@ def csvnOp(method):
#_csvn = getServerDir() + '/bin/csvn' #_csvn = getServerDir() + '/bin/csvn'
#_csvn_httpd = getServerDir() + '/bin/csvn-httpd' #_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) ret_csvn = public.execShell(_initd_csvn + ' ' + method)
if ret_csvn[1] == '' and ret_csvn_httpd[1] == '': if ret_csvn[1] == '' and ret_csvn_httpd[1] == '':
return 'ok' return 'ok'

Loading…
Cancel
Save