forked from ungleich-public/cdist
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
|
# 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
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
group
|
||||||
mode
|
mode
|
||||||
|
owner
|
||||||
source
|
source
|
||||||
destination
|
destination
|
||||||
|
|
Loading…
Reference in a new issue