Daniel Gubser wrote: > Hello Franck Hi Daniel,
> Franck Joncourt schrieb: >> For any new upstream release, the psad.conf file is added to /etc/psad/ >> and then overwrite the current setup. __apt-get upgrade__ prompts the >> user to know what to do. I do not think that would be a good idea to ask >> questions during the upgrade process if this is not needed. > > But if you have this values in debconf you should be asked again (as far > as I remember), just new ones get asked. > > Or am I wrong? I do not understand what you mean :p! Right now my psad package asks questions only when the user types in __dpkg-reconfigure psad__. (medium priority) Every time the user uses this command, the questions are asked and their default values are set according to their previous values. If I install psad on a clean system (psad purged), during the install/upgrade process the user is not disturbed with debconf. He needs to run the __dpkg-reconfigure__ command, afterwards, to update his configuration with the help of debconf. Otherwise, I can increase the debconf priority to high so that questions are asked during the upgrade/install process, and: - if a previous setup is found I do nothing ; this is the case when I install the package for the second time without previous purge. - otherwise it means the psad.conf file is the one bundled in the package, and I can ask the questions. This is the case when I upgrade or install psad for the first time. Using __dpkg-reconfigure__, the post install script will check if a previous config is found, and then it will stop since we already setup psad during the first install/upgrade process. A way to solve this could be to ask "Would you like to update your setup with specific values ?" rather than checking for a previous setup. Do you see what I mean ? I do not know when I should ask the questions. How would you like this to be done ? Hope this is less obscure :) Regards, -- Franck Joncourt http://debian.org - http://smhteam.info/wiki/ Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE
signature.asc
Description: OpenPGP digital signature

