ensure no conf/conf is created (ln -s src dst/conf createst dst/conf/src if conf exists as a dir)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.0
Nico Schottelius 14 years ago
parent 508ecacb85
commit 581727e1bf
  1. 3
      bin/cdist-deploy-to

@ -42,6 +42,9 @@ echo "cdist $__cdist_version: Configuring $__cdist_target_host"
# Init base
mkdir -p "$__cdist_local_base_dir"
# Ensure there is no old link, otherwise the new link is created below the old
rm -f "$__cdist_local_base_dir/$__cdist_name_conf_dir"
# Link configuration source directory - consistent with remote
ln -sf "$__cdist_conf_dir" "$__cdist_local_base_dir/$__cdist_name_conf_dir"

Loading…
Cancel
Save