hola-server 0.8.5 → 0.8.6
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/core/bash.js +2 -2
- package/package.json +1 -1
package/core/bash.js
CHANGED
|
@@ -77,7 +77,7 @@ const run_local_cmd = async (cmd, log_extra) => {
|
|
|
77
77
|
*/
|
|
78
78
|
const scp = async (host, remote_file, local_file, log_extra) => {
|
|
79
79
|
return new Promise((resolve) => {
|
|
80
|
-
exec(`
|
|
80
|
+
exec(`scp ${host.auth} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P ${host.port} -q ${host.user}@${host.ip}:${remote_file} ${local_file}`, (error, stdout) => {
|
|
81
81
|
if (error) {
|
|
82
82
|
if (is_log_error()) {
|
|
83
83
|
log_error(LOG_BASH, "error scp on host:" + host.name + " remote:" + remote_file + ",local:" + local_file + ",error:" + error, log_extra);
|
|
@@ -102,7 +102,7 @@ const scp = async (host, remote_file, local_file, log_extra) => {
|
|
|
102
102
|
*/
|
|
103
103
|
const scpr = async (host, local_file, remote_file, log_extra) => {
|
|
104
104
|
return new Promise((resolve) => {
|
|
105
|
-
exec(`
|
|
105
|
+
exec(`scp ${host.auth} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P ${host.port} -q ${local_file} ${host.user}@${host.ip}:${remote_file}`, (error, stdout) => {
|
|
106
106
|
if (error) {
|
|
107
107
|
if (is_log_error()) {
|
|
108
108
|
log_error(LOG_BASH, "error scpr on host:" + host.name + " remote:" + remote_file + ",local:" + local_file + ",error:" + error, log_extra);
|