Update index.py

pull/109/head
midoks 7 years ago
parent c7f3b14112
commit cc75f4daa2
  1. 16
      plugins/csvn/index.py

@ -101,9 +101,8 @@ def reload():
def initdStatus(): def initdStatus():
if app_debug: if not app_debug:
os_name = public.getOs() if public.getOs() == 'darwin':
if os_name == 'darwin':
return "Apple Computer does not support" return "Apple Computer does not support"
_initd_csvn = '/etc/init.d/csvn' _initd_csvn = '/etc/init.d/csvn'
@ -116,9 +115,8 @@ def initdStatus():
def initdInstall(): def initdInstall():
import shutil import shutil
if app_debug: if not app_debug:
os_name = public.getOs() if public.getOs() == 'darwin':
if os_name == 'darwin':
return "Apple Computer does not support" return "Apple Computer does not support"
_csvn = getServerDir() + '/bin/csvn' _csvn = getServerDir() + '/bin/csvn'
@ -132,9 +130,8 @@ def initdInstall():
def initdUinstall(): def initdUinstall():
if app_debug: if not app_debug:
os_name = public.getOs() if public.getOs() == 'darwin':
if os_name == 'darwin':
return "Apple Computer does not support" return "Apple Computer does not support"
_csvn = getServerDir() + '/bin/csvn' _csvn = getServerDir() + '/bin/csvn'
@ -144,6 +141,7 @@ def initdUinstall():
ret_csvn_httpd = public.execShell(_csvn_httpd + ' remove') ret_csvn_httpd = public.execShell(_csvn_httpd + ' remove')
return 'ok' return 'ok'
if __name__ == "__main__": if __name__ == "__main__":
func = sys.argv[1] func = sys.argv[1]
if func == 'status': if func == 'status':

Loading…
Cancel
Save