From 4d8840dba0c36d93149e3fed966bbc032a4b0cee Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 2 Sep 2013 10:50:42 +0200 Subject: [PATCH] also setup homedir Signed-off-by: Nico Schottelius --- cdist/conf/type/__cdist/manifest | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cdist/conf/type/__cdist/manifest b/cdist/conf/type/__cdist/manifest index 16498c95..aeee415a 100755 --- a/cdist/conf/type/__cdist/manifest +++ b/cdist/conf/type/__cdist/manifest @@ -39,8 +39,15 @@ else source="git://github.com/telmich/cdist.git" fi -__user "$username" +# Currently hardcoded - if anyone cares, make a parameter +# out of it +home=/home/$username -require="__user/$username" __git "$directory" \ +__user "$username" --home "$home" + +require="__username/$user" __directory "$home" + --owner "$username" + +require="__user/$username __directory/$home" __git "$directory" \ --source "$source" \ --owner "$username" --branch "$branch"