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