|
|
@ -33,11 +33,12 @@ set -x |
|
|
|
export PATH="$PATH:$(pwd -P)/bin" |
|
|
|
export PATH="$PATH:$(pwd -P)/bin" |
|
|
|
export __cdist_conf_dir="$(pwd -P)/conf" |
|
|
|
export __cdist_conf_dir="$(pwd -P)/conf" |
|
|
|
|
|
|
|
|
|
|
|
export __cdist_local_base_dir=/tmp/localhost |
|
|
|
# Allow user to supply hostname |
|
|
|
|
|
|
|
|
|
|
|
# Allow user to suply hostname |
|
|
|
|
|
|
|
target="${1:-localhost}" |
|
|
|
target="${1:-localhost}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# And use hostname as basedir (dangerous, but hackers know what they do) |
|
|
|
|
|
|
|
export __cdist_local_base_dir="/tmp/$target" |
|
|
|
|
|
|
|
|
|
|
|
# Run the real script |
|
|
|
# Run the real script |
|
|
|
cdist-deploy-to "$target" |
|
|
|
cdist-deploy-to "$target" |
|
|
|
|
|
|
|
|
|
|
|