2015-02-12 09:35:07 +00:00
|
|
|
if [ -f "$__object/parameter/destination" ]; then
|
|
|
|
destination=$(cat "$__object/parameter/destination")
|
2015-02-11 14:56:45 +00:00
|
|
|
else
|
2015-02-12 15:21:15 +00:00
|
|
|
destination="/$__object_id"
|
2015-02-11 14:56:45 +00:00
|
|
|
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
|
2015-02-12 09:35:07 +00:00
|
|
|
echo chown -R "$ownergroup" "$destination"
|
2015-02-11 14:56:45 +00:00
|
|
|
fi
|