Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-06-17 10:40:28 +02:00
parent 7d6b1b5236
commit 75bff0b13f

View file

@ -27,11 +27,13 @@ __cdist_init_deploy()
# Ensure there is no old stuff, neither local nor remote # Ensure there is no old stuff, neither local nor remote
rm -rf "$__cdist_local_base_dir" rm -rf "$__cdist_local_base_dir"
ssh "${__cdist_remote_user}@$1" "rm -rf ${__cdist_remote_base_dir}" ssh "${__cdist_remote_user}@${__cdist_target_host}" \
"rm -rf ${__cdist_remote_base_dir}"
# Init base # Init base
mkdir -p "$__cdist_local_base_dir" mkdir -p "$__cdist_local_base_dir"
ssh "${__cdist_remote_user}@$1" "mkdir -p ${__cdist_remote_base_dir}" ssh "${__cdist_remote_user}@${__cdist_target_host}" \
"mkdir -p ${__cdist_remote_base_dir}"
# Link configuration source directory - consistent with remote # Link configuration source directory - consistent with remote
ln -sf "$__cdist_conf_dir" "$__cdist_local_base_dir/$__cdist_name_conf_dir" ln -sf "$__cdist_conf_dir" "$__cdist_local_base_dir/$__cdist_name_conf_dir"