__cdist_local_base_dir depending on hostname in HACKERS_README
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
7c34ccde99
commit
b5e7ee0772
1 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue