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:
parent
1a07ff0419
commit
320a8c26c0
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user