Update site.py

pull/632/head
Mr Chen 6 months ago
parent 3f0f219896
commit d074224447
  1. 3
      web/utils/site.py

@ -1470,10 +1470,9 @@ location ^~ {from} {\n\
proxy_dir = "{}/{}".format(self.proxyPath, site_name)
proxy_conf = proxy_dir + '/' + proxy_id + '.conf'
proxy_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id)
if os.path.exists(proxy_conf):
if os.path.exists(proxy_txt):
mw.execShell('mv ' + proxy_txt + ' ' + proxy_conf)
if len(self.close_proxy) > 0:
mw.restartWeb()
self.close_proxy = []

Loading…
Cancel
Save