forked from ungleich-public/cdist
fix first bugs in remotely running code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
9e94bb56a2
commit
00bbadef78
3 changed files with 4 additions and 5 deletions
|
|
@ -32,6 +32,6 @@ __cdist_object_code_run()
|
|||
__cdist_code_run "$__cdist_object_code_run_object" "${__cdist_name_gencode_local}"
|
||||
|
||||
# Code remote
|
||||
__cdist_run_remote "$__cdist_target_host" \
|
||||
"__cdist_code_run" "$__cdist_object_code_run_object" "${__cdist_name_gencode_remote}"
|
||||
__cdist_run_remote "__cdist_code_run" \
|
||||
"$__cdist_object_code_run_object" "${__cdist_name_gencode_remote}"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,5 @@ __cdist_run_remote()
|
|||
ssh "${__cdist_remote_user}@${__cdist_target_host}" \
|
||||
"export PATH=\"${__cdist_remote_bin_dir}:\$PATH\";" \
|
||||
"export __cdist_out_object_dir=\"$__cdist_remote_out_object_dir\";" \
|
||||
". cdist-config;" \
|
||||
"$@"
|
||||
"cdist-remote" "$@"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue