add support for --owner and --group in __file
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
8ff02673f0
commit
5821ceebbc
2 changed files with 13 additions and 2 deletions
|
@ -109,6 +109,15 @@ esac
|
|||
|
||||
# Mode settings
|
||||
if [ -f "$__object/parameter/mode" ]; then
|
||||
mode="$(cat "$__object/parameters/mode")"
|
||||
echo chmod \"$mode\" \"$destination\"
|
||||
echo chmod \"$(cat "$__object/parameters/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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
group
|
||||
mode
|
||||
owner
|
||||
source
|
||||
destination
|
||||
|
|
Loading…
Reference in a new issue