From a29ec6398ef775a28f1d9e06c42e12b222df4ef9 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 12 Feb 2019 19:44:17 +0800 Subject: [PATCH] Update site_api.py --- class/core/site_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class/core/site_api.py b/class/core/site_api.py index c4724adcc..78c70cb8d 100755 --- a/class/core/site_api.py +++ b/class/core/site_api.py @@ -240,10 +240,10 @@ class site_api: return public.getJson(data) if not os.path.exists(letpath): - public.ExecShell("mkdir -p " + letpath) - public.ExecShell("ln -sf \"" + home_cert + "\" \"" + csrpath + '"') - public.ExecShell("ln -sf \"" + home_key + "\" \"" + keypath + '"') - public.ExecShell('echo "let" > "' + letpath + '/README"') + public.execShell("mkdir -p " + letpath) + public.execShell("ln -sf \"" + home_cert + "\" \"" + csrpath + '"') + public.execShell("ln -sf \"" + home_key + "\" \"" + keypath + '"') + public.execShell('echo "let" > "' + letpath + '/README"') if(actionstr == '2'): return public.returnJson(True, '证书已更新!')