@xuda.io/drive_module 1.1.1196 → 1.1.1197
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -617,7 +617,9 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
617
617
|
|
|
618
618
|
const { data: app_obj } = await db_module.get_app_obj(app_id);
|
|
619
619
|
if (app_obj?.app_type === 'datacenter') {
|
|
620
|
-
|
|
620
|
+
const host = `root@${app_obj.app_hosting_server.ip}`;
|
|
621
|
+
await _utils.run_ssh_script(`scp ${tempPath} ${host}:/var/xuda/workspace_drive/${file_name}; `);
|
|
622
|
+
} else if (app_obj?.is_deployment) {
|
|
621
623
|
const host = `root@${app_obj.app_hosting_server.ip}`;
|
|
622
624
|
await _utils.run_ssh_script(`scp ${tempPath} ${host}:/var/xuda/workspace_drive/${file_name}; `);
|
|
623
625
|
} else {
|