Le mardi 21 décembre 2010 à 22:37 +0100, Ludovico Cavedon a écrit : > On 12/21/2010 10:20 PM, Alban Browaeys wrote: > >> But now I have a question without answer: if > >> -the question about the password was never asked, and > >> -there is no way to ask the user (e.g. running non-interactive) > >> should the postinst phase: > >> -fail, or > >> -set a randomly generated password? > >> > >> I am going for the second one. Thoughts? > > > > I came up with, ie let it fail but only if the password is not already > > in the database and has not changed: > > So you are saying that the script should *fail* if it is a first > installation of ntop and there is not ask to ask the user? > > The only concern about that it is that it would prevent automated > installs...
I am thinking in such case the user should preseed via fai or such. Also sorry I forgot to add a check for empty "password again" > Do you have points againts setting random password in this case? no. This is a short term fix. Also the issue I encountered was not with automated install but merely the second db_input not triggering a dialog on second call with default settings for debconf. So we probably want both fix (ie check that the password again was not already asked on reinstall and a random password on unattended first installs). My guess is that it behaved like a reinstall in my case due to the command not found issue in config then attempt to rescue install. Cheers Alban -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org