On Sun, Oct 26, 2008 at 12:10:26AM +0200, lucas kenter wrote: > Wow, > > Thanks for the quick and helpfull response Matthew and ehm... I suppose this > is what they mean by "Debians helpfull community"! I'm possitively amazed! > :-D > > one more question though, > > > So you could do something like this in your postinst: > > > > if [ "$1" = "configure" -a "$2" = "" ]; then > > # Ask your questions > > fi > > > > Because the only time that the second argument will be empty is on the > > initial install -- after that, $2 will always contain the previously > > configured version. > > Would this still allow users to issue a dpkg-reconfigure?
Now *that* is an interesting question I've never explored. I'll leave that one up to you to test. If you put: echo $* at the top of your postinst, though, and then install, upgrade, and dpkg-reconfigure your package and see what happens... - Matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]