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... Do you have points againts setting random password in this case? > Preconfiguring packages ... > /tmp/ntop.config.191211: line 98: ntop: command not found > ntop failed to preconfigure, with exit status 127 Yes, this is another issue that will be fixed in the next upload. Jordan, this is what I meant about calling ntop from the config script. > It looks like the binary path should be included too (this is from a > purge then reinstall test of the previous issue). > ie: > I think the issue here is that ntop is called from the config script rather than from the postinst. In fact, during the preconfiguration phase, the config script is called before the package in unpacked. Thanks! Ludovico -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

