restructure /cdist-cconfig-tree
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
3ead0e5912
commit
6c69e0246f
1 changed files with 5 additions and 6 deletions
|
@ -71,17 +71,16 @@ mkdir -p "${cdist_bindir}"
|
||||||
#unset PATH
|
#unset PATH
|
||||||
|
|
||||||
# prepend our path
|
# prepend our path
|
||||||
PATH="${cdist_bindir}:$PATH"
|
PATH="${__cdist_cache_bin}:$PATH"
|
||||||
|
|
||||||
# create output dir
|
# create output dir
|
||||||
mkdir -p "${cdist_confdir}"
|
mkdir -p "${cdist_confdir}"
|
||||||
|
|
||||||
# force -x, so the user is aware the file is executed
|
# force -x, so the user is aware the file is executed
|
||||||
if [ -x "${__cdist_manifest_init}" ]; then
|
if [ ! -x "${__cdist_manifest_init}" ]; then
|
||||||
"${__cdist_manifest_init}"
|
__cdist_exit_err "${__cdist_manifest_init} needs to be executable."
|
||||||
else
|
|
||||||
echo Throw some error, as you forgot to +x it.
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
"${__cdist_manifest_init}"
|
||||||
|
|
||||||
echo "Finished tree generation, have a look at ${cdist_confdir}."
|
echo "Finished tree generation, have a look at ${cdist_confdir}."
|
||||||
|
|
Loading…
Reference in a new issue