From 6776cd9932400a467357ac2ec062279afcdadff0 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 11 Jan 2019 10:38:10 +0800 Subject: [PATCH] Update index.py --- plugins/csvn/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/csvn/index.py b/plugins/csvn/index.py index bf190feb1..d6e01a508 100755 --- a/plugins/csvn/index.py +++ b/plugins/csvn/index.py @@ -15,7 +15,7 @@ import public app_debug = False -if public.getOs() == 'darwin': +if public.isAppleSystem(): app_debug = True @@ -110,7 +110,7 @@ def reload(): def initdStatus(): if not app_debug: - if public.getOs() == 'darwin': + if public.isAppleSystem(): return "Apple Computer does not support" _initd_csvn = '/etc/init.d/csvn' @@ -124,7 +124,7 @@ def initdStatus(): def initdInstall(): import shutil if not app_debug: - if public.getOs() == 'darwin': + if public.isAppleSystem(): return "Apple Computer does not support" _csvn = getServerDir() + '/bin/csvn' @@ -139,7 +139,7 @@ def initdInstall(): def initdUinstall(): if not app_debug: - if public.getOs() == 'darwin': + if public.isAppleSystem(): return "Apple Computer does not support" _csvn = getServerDir() + '/bin/csvn'