add support for --owner and --group in __file

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-15 00:00:25 +01:00
parent 8ff02673f0
commit 5821ceebbc
2 changed files with 13 additions and 2 deletions

View file

@ -109,6 +109,15 @@ esac
# Mode settings # Mode settings
if [ -f "$__object/parameter/mode" ]; then if [ -f "$__object/parameter/mode" ]; then
mode="$(cat "$__object/parameters/mode")" echo chmod \"$(cat "$__object/parameters/mode")\" \"$destination\"
echo chmod \"$mode\" \"$destination\" fi
# Group
if [ -f "$__object/parameter/group" ]; then
echo chgrp \"$(cat "$__object/parameters/group")\" \"$destination\"
fi
# Owner
if [ -f "$__object/parameter/owner" ]; then
echo chown \"$(cat "$__object/parameters/owner")\" \"$destination\"
fi fi

View file

@ -1,3 +1,5 @@
group
mode mode
owner
source source
destination destination