mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
development: Fix "scp: error: unexpected filename: ." (#2933)
This commit is contained in:
1 parent
320a8c26c0
commit
f020fa20b9
1 file changed
+4
-2
@@ -363,8 +363,10 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
||||
sync_cmd = "rsync -Laz --delete #{REMOTES_LOCATION}" \
|
||||
" #{host['NAME']}:#{remote_dir}"
|
||||
else
|
||||
sync_cmd = "scp -rp #{REMOTES_LOCATION}/* " \
|
||||
"#{host['NAME']}:#{remote_dir} 2> /dev/null"
|
||||
sync_cmd = "ssh #{host['NAME']}" \
|
||||
" mkdir -p '#{remote_dir}' 2>/dev/null &&" \
|
||||
" scp -rp #{REMOTES_LOCATION}/*" \
|
||||
" #{host['NAME']}:#{remote_dir} 2> /dev/null"
|
||||
end
|
||||
|
||||
`#{sync_cmd} 2>/dev/null`
|
||||
|
||||
Reference in new issue
Block a user