add --shell to __cdist

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-09-02 11:21:19 +02:00
parent 34b5fbd892
commit 6af7eadc89
2 changed files with 9 additions and 2 deletions

View file

@ -21,6 +21,12 @@
directory="$__object_id" directory="$__object_id"
if [ -f "$__object/parameter/shell" ]; then
shell="--shell $(cat "$__object/parameter/shell")"
else
shell=""
fi
if [ -f "$__object/parameter/username" ]; then if [ -f "$__object/parameter/username" ]; then
username="$(cat "$__object/parameter/username")" username="$(cat "$__object/parameter/username")"
else else
@ -43,9 +49,9 @@ fi
# out of it # out of it
home=/home/$username home=/home/$username
__user "$username" --home "$home" __user "$username" --home "$home" $shell
require="__username/$user" __directory "$home" require="__user/$username" __directory "$home" \
--owner "$username" --owner "$username"
require="__user/$username __directory/$home" __git "$directory" \ require="__user/$username __directory/$home" __git "$directory" \

View file

@ -1,3 +1,4 @@
branch branch
source source
username username
shell