0ddc848b1e
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
17 lines
437 B
Text
17 lines
437 B
Text
if [ -f "$__object/parameter/destination" ]; then
|
|
destination=$(cat "$__object/parameter/destination")
|
|
else
|
|
destination="/$__object_id"
|
|
fi
|
|
|
|
ownergroup=""
|
|
if [ -f "$__object/parameter/owner" ]; then
|
|
ownergroup=$(cat "$__object/parameter/owner")
|
|
fi
|
|
if [ -f "$__object/parameter/group" ]; then
|
|
ownergroup=":$(cat "$__object/parameter/group")"
|
|
fi
|
|
|
|
if [ "$ownergroup" ]; then
|
|
echo chown -R "$ownergroup" "$destination"
|
|
fi
|