Update index.py

pull/382/head
midoks 2 years ago
parent 0ff0728517
commit acda55cc55
  1. 11
      plugins/migration_api/index.py

@ -467,7 +467,8 @@ class classApi:
[self.__VHOST_PATH + [self.__VHOST_PATH +
'/nginx/proxy/{}'.format(siteInfo['name']), "反向代理配置"], '/nginx/proxy/{}'.format(siteInfo['name']), "反向代理配置"],
[self.__VHOST_PATH + [self.__VHOST_PATH +
"/letsencrypt/{}".format(siteInfo['name']), "网站SSL证书"] "/letsencrypt/{}".format(siteInfo['name']), "网站SSL证书"],
[self.__VHOST_PATH + "/ssl/{}".format(siteInfo['name']), "网站SSL证书"]
] ]
self.send_list(s_files) self.send_list(s_files)
@ -881,6 +882,14 @@ def stepOne():
url = args['url'] url = args['url']
token = args['token'] token = args['token']
speed_file = getServerDir() + '/config/speed.json'
if os.path.exists(speed_file):
os.remove(speed_file)
sync_file = getServerDir() + '/config/sync_info.json'
if os.path.exists(sync_file):
os.remove(sync_file)
api = classApi(url, token) api = classApi(url, token)
# api = # api =
# classApi('http://127.0.0.1:7200','HfJNKGP5RPqGvhIOyrwpXG4A2fTjSh9B') # classApi('http://127.0.0.1:7200','HfJNKGP5RPqGvhIOyrwpXG4A2fTjSh9B')

Loading…
Cancel
Save