On Tue, Dec 21, 2010 at 10:44:42PM +0100, Alban Browaeys wrote: > > 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"
I agreee that the use case here would be via preseeding or fai, however, we don't need the postinst to fail. > > 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. I think the reason that the second db_input was not trigger was because I did not set "seen" to false. db_fset ntop/admin_password seen false db_fset ntop/admin_password_again seen false Regards, Jordan Metzmeier -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org