hey guys, On Thu, Aug 10, 2006 at 10:06:02PM +1200, Matt Brown wrote: > Thijs Kinkhorst wrote: > > Sure, thanks for the quick response. I've checked it out and it works > > good, except for the fact that the database is owned by root:root and > > filemode 0640. That makes it unreadable for my webapp. Would there be a > > way to specify the file owner to be www-data, or would I have to code > > that into the package scripts?
there are some hinting variables which you can use to specify the defaults. i believe they're dbc_generate_include_owner and dbc_generate_include_mode, though don't trust my memory. there should also be something like dbc_generate_include_args for even more control. > So the answer is code it into your package scripts. I haven't really > tested that we preserve permissions on upgrade, and I have a nasty > feeling that we probably don't... I'll take a look at that. i don't think we do... > It would be nice to come up with some examples for how a packager should > set custom permissions from their maintainer scripts. i think a packager shouldn't have to do more than the above, and anything else we should take care of ourselves. without thinking too hard i'd suggest that we modify d-g-i to check dpkg-statoverride for locally overriden permissions and not apply the permissions if such an override exists. sean --
signature.asc
Description: Digital signature