forked from ungleich-public/cdist
also enable transfer of explorer data back to the server
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f22dcb5d8f
commit
1850042126
2 changed files with 11 additions and 5 deletions
|
|
@ -49,9 +49,13 @@ ssh root@${__cdist_target_host} \
|
|||
\"${__cdist_remote_cache_bin}/cdist-explorer-coordinator\" \
|
||||
\"${__cdist_remote_explorer_dir}\" \"${__cdist_remote_cache_explorer}\""
|
||||
|
||||
# Ensure local destination directory exists
|
||||
mkdir -p "$(__cdist_cache_host)/$__cdist_name_explorer"
|
||||
|
||||
# Transfer back all results
|
||||
# scp -r "root@${__cdist_target_host}:${__cdist_remote_dir}"
|
||||
|
||||
# Transfer back all results - FIXME: Add 2 level cache, so old version is kept until success
|
||||
scp -r "root@${__cdist_target_host}:${__cdist_remote_cache_explorer}/*" \
|
||||
"$(__cdist_cache_host)/$__cdist_name_explorer"
|
||||
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue