diff --git a/plugins/migration_api/index.py b/plugins/migration_api/index.py index 8716df8b8..722d2dbdd 100755 --- a/plugins/migration_api/index.py +++ b/plugins/migration_api/index.py @@ -467,7 +467,8 @@ class classApi: [self.__VHOST_PATH + '/nginx/proxy/{}'.format(siteInfo['name']), "反向代理配置"], [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) @@ -881,6 +882,14 @@ def stepOne(): url = args['url'] 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('http://127.0.0.1:7200','HfJNKGP5RPqGvhIOyrwpXG4A2fTjSh9B')