Update site.py

pull/632/head
Mr Chen 6 months ago
parent 6433d6fc50
commit d56de6d827
  1. 2
      web/utils/site.py

@ -1513,7 +1513,7 @@ location ^~ {from} {\n\
redirect_conf = redirect_dir + '/' + redirect_data['id'] + '.conf'
redirect_txt = "{}/{}/{}.conf.txt".format(self.redirectPath, site_name, redirect_data['id'])
if os.path.exists(redirect_conf):
self.close_redirect.append(r['id'])
self.close_redirect.append(redirect_data['id'])
mw.execShell('mv ' + redirect_conf + ' ' + redirect_txt)
mw.restartWeb()

Loading…
Cancel
Save