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
