0

I found that in the packaging of ralph ng there seems to be an issue with Debian packaging. The desired behaviour would be that on first install a Debian menu prompt appears, to configure some database settings, on update those generated files should be left alone. Unfortunately the current behaviour is that the config files get overwritten on update.

Maybe anyone with packaging experience could have a quick look and point me in the right direction to fix this.

1

The “right direction” involves giving due consideration to all the advice in the debconf-devel manpage, in particular the “Config file handling” section which gives a detailed example of handling this exact situation:

  • the config script needs to read the existing configuration file, if any;
  • the postinst script needs to handle missing entries in the configuration file, if any.

It would perhaps be better to use dbconfig-common in this case; that deals with configuring database connections and a variety of other related database-handling tasks.

The postinst should also be fixed to avoid writing to standard output, since that can confuse debconf.

  • Thanks for your input. I'll check out your links and see if I'm able to fix it from here on by myself. – engelant Jan 15 '19 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.