pass owner/group/mode to __directory as well

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-02-14 20:44:51 +01:00
parent 134a4a7b34
commit f461a5073c

View file

@ -24,6 +24,9 @@
__package git --state present
state_should="$(cat "$__object/parameter/state")"
owner="$(cat "$__object/parameter/owner")"
group="$(cat "$__object/parameter/group")"
mode="$(cat "$__object/parameter/mode")"
# Let __directory handle removal of git repos
@ -33,7 +36,10 @@ case "$state_should" in
;;
absent)
__directory "$__object_id" --state absent
__directory "$__object_id" --state absent \
--owner "$owner" \
--group "$group" \
--mode "$mode"
;;
*)