Update site.py

pull/632/head
Mr Chen 6 months ago
parent d1f8cf9a8e
commit dc9d114ca4
  1. 2
      web/utils/site.py

@ -1440,7 +1440,7 @@ location ^~ {from} {\n\
conf_file = "{}/{}/{}.conf".format(self.proxyPath, site_name, proxy_id) conf_file = "{}/{}/{}.conf".format(self.proxyPath, site_name, proxy_id)
conf_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id) conf_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id)
if _status == '1': if status == '1':
mw.execShell('mv ' + conf_txt + ' ' + conf_file) mw.execShell('mv ' + conf_txt + ' ' + conf_file)
else: else:
mw.execShell('mv ' + conf_file + ' ' + conf_txt) mw.execShell('mv ' + conf_file + ' ' + conf_txt)

Loading…
Cancel
Save