restructure /cdist-cconfig-tree

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-02 16:03:39 +01:00
parent 3ead0e5912
commit 6c69e0246f
1 changed files with 5 additions and 6 deletions

View File

@ -71,17 +71,16 @@ mkdir -p "${cdist_bindir}"
#unset PATH
# prepend our path
PATH="${cdist_bindir}:$PATH"
PATH="${__cdist_cache_bin}:$PATH"
# create output dir
mkdir -p "${cdist_confdir}"
# force -x, so the user is aware the file is executed
if [ -x "${__cdist_manifest_init}" ]; then
"${__cdist_manifest_init}"
else
echo Throw some error, as you forgot to +x it.
exit 1
if [ ! -x "${__cdist_manifest_init}" ]; then
__cdist_exit_err "${__cdist_manifest_init} needs to be executable."
fi
"${__cdist_manifest_init}"
echo "Finished tree generation, have a look at ${cdist_confdir}."