add --shell to __cdist
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
34b5fbd892
commit
6af7eadc89
2 changed files with 9 additions and 2 deletions
|
@ -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" \
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
branch
|
branch
|
||||||
source
|
source
|
||||||
username
|
username
|
||||||
|
shell
|
||||||
|
|
Loading…
Reference in a new issue