From 58950d581c73a8d5c9ca871fa061dbbf43b70d58 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 25 Nov 2024 00:40:18 +0800 Subject: [PATCH] Update site.py --- web/utils/site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/site.py b/web/utils/site.py index fbf793b03..e49850566 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1512,7 +1512,7 @@ location ^~ {from} {\n\ redirect_dir = "{}/{}".format(self.redirectPath, site_name) redirect_conf = redirect_dir + '/' + r['id'] + '.conf' redirect_txt = "{}/{}/{}.conf.txt".format(self.redirectPath, site_name, r['id']) - if os.path.exists(proxy_conf): + if os.path.exists(redirect_conf): self.close_redirect.append(r['id']) mw.execShell('mv ' + redirect_conf + ' ' + redirect_txt) mw.restartWeb() @@ -1522,7 +1522,7 @@ location ^~ {from} {\n\ redirect_dir = "{}/{}".format(self.redirectPath, site_name) redirect_conf = redirect_dir + '/' + redirect_id + '.conf' redirect_txt = "{}/{}/{}.conf.txt".format(self.redirectPath, site_name, redirect_id) - if os.path.exists(proxy_txt): + if os.path.exists(redirect_txt): mw.execShell('mv ' + redirect_txt + ' ' + redirect_conf) if len(self.close_redirect) > 0: