[pkg-firebird-general] fixpermscommon on every upgrade?

Tamas TEVESZ ice at extreme.hu
Tue Mar 6 04:08:49 CET 2007


if i'm reading the postinst right, upon upgrade, fixpermscommon is 
called unconditionally.

is this really necessary? i can't cite a situation which i would be 
caught in right now (apart from one certain installation, but that guy 
deserves it anyway), but in the past i was bitten not once and not 
twice by (another) packages trying to outsmart the user.

what i mean exactly is, if fixpermscommon is called on install and on 
an upgrade from a (very) different (package-wise) pervious version, 
thats fine, but my opinion is that that should be just about it. if 
there's a file with permissions like bazooka:mazooka 47991, then *i* 
put it there, and i probably did it for a *reason*;

not to mention the actual case with mysql a while back, when security 
upgrades comin' out every second week, and the postinst script very 
graciously did a chown -R mysql:mysql /var/lib/mysql every time. you 
perhaps have an idea how much does it take with several tens of 
thousands of databases, each containing a couple of tens of tables (if 
not, here's news for you: *a lot*). in the end i ended up nullifying 
find, chown, chmod and the gang before each mysql upgrade, so it could 
finish in like 2 minutes, instead of several hours(!).

2c.


-- 
[-]

mkdir /nonexistent



More information about the pkg-firebird-general mailing list