修改客户端目录

main
rogersun 24 hours ago
parent f146dcf5cb
commit 576fba7d7c
  1. 5
      update/utils/client_util_custom.py

@ -24,7 +24,7 @@ class ClientUtilCustom:
self.local_path = os.path.join(BASE_DIR, 'dx', 'client') self.local_path = os.path.join(BASE_DIR, 'dx', 'client')
self.deploy_db_config = {'host': '10.10.0.80', 'port': 3306, 'user': 'cine_readonly', self.deploy_db_config = {'host': '10.10.0.80', 'port': 3306, 'user': 'cine_readonly',
'password': 'IyzCtV11', 'database': 'yhz_tool'} 'password': 'IyzCtV11', 'database': 'yhz_tool'}
self.client_mirror = {'url': 'http://10.10.0.38:8989/upload/'} self.client_mirror = {'url': 'http://10.10.0.38:8989/upload/', 'host':'10.10.0.38'}
self.deploy_id = 0 self.deploy_id = 0
self.client_data = [] self.client_data = []
self.client_file_list = [] self.client_file_list = []
@ -149,8 +149,7 @@ class ClientUtilCustom:
# 关闭本地文件 # 关闭本地文件
local_file.close() local_file.close()
target_file = os.path.join('/home/client/', file['name']) target_file = os.path.join('/home/client/', file['name'])
self.upload(self.client_mirror['host'], file_path, target_file, self.client_mirror['username'], self.upload(self.client_mirror['host'], file_path, target_file)
self.client_mirror['password'])
print(f'完成客户端同步: {target_file}') print(f'完成客户端同步: {target_file}')
print(self.client_data) print(self.client_data)

Loading…
Cancel
Save