I think something like this would do the trick: if yadayada; then db_input foo/bar fi To be put in the debian/package.config script.
Attachment: pgp0LxRqjEpfc.pgp Description: PGP signature