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"
if [ -f "$__object/parameter/shell" ]; then
shell="--shell $(cat "$__object/parameter/shell")"
else
shell=""
fi
if [ -f "$__object/parameter/username" ]; then
username="$(cat "$__object/parameter/username")"
else
@ -43,9 +49,9 @@ fi
# out of it
home=/home/$username
__user "$username" --home "$home"
__user "$username" --home "$home" $shell
require="__username/$user" __directory "$home"
require="__user/$username" __directory "$home" \
--owner "$username"
require="__user/$username __directory/$home" __git "$directory" \

View File

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