1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

development: Fix "scp: error: unexpected filename: ."

This commit is contained in:
Devin Christensen 2019-02-13 05:37:01 -07:00 committed by Ruben S. Montero
parent 1a07ff0419
commit 320a8c26c0
3 changed files with 3 additions and 3 deletions

View File

@ -363,7 +363,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
sync_cmd = "rsync -Laz --delete #{REMOTES_LOCATION}" \
" #{host['NAME']}:#{remote_dir}"
else
sync_cmd = "scp -rp #{REMOTES_LOCATION}/. " \
sync_cmd = "scp -rp #{REMOTES_LOCATION}/* " \
"#{host['NAME']}:#{remote_dir} 2> /dev/null"
end

View File

@ -74,7 +74,7 @@ class InformationManagerDriver < OpenNebulaDriver
if !action_is_local?(:MONITOR)
if do_update == "1" || @options[:force_copy]
# Use SCP to sync:
sync_cmd = "scp -r #{@local_scripts_base_path}/. " \
sync_cmd = "scp -r #{@local_scripts_base_path}/* " \
"#{host}:#{@remote_scripts_base_path}"
# Use rsync to sync:

View File

@ -268,7 +268,7 @@ private
SSHCommand.run("mkdir -p #{remote_dir}",host,logger)
# Use SCP to sync:
sync_cmd = "scp -rp #{REMOTES_LOCATION}/. #{host}:#{remote_dir}"
sync_cmd = "scp -rp #{REMOTES_LOCATION}/* #{host}:#{remote_dir}"
# Use rsync to sync:
# sync_cmd = "rsync -Laz #{REMOTES_LOCATION} #{host}:#{@remote_dir}"