I have a question asking for your kind help.
I am trying to make a debian package ask questions to users
I am using debuild to build the package
I have a config and a templates file in debian directory
config file:
Code: Select all
#!/bin/sh
# Exit on error
set -e
# Source debconf library.
. /usr/share/debconf/confmodule
# Ask questions
db_input medium packagename/question1 || true
# Show interface
db_go || true
Code: Select all
Template: packagename/question1
Type: boolean
Default: true
Description: Borro versiones anteriores de este paquete ubicadas
Asi es
inside my postinst script
When I executes:
Code: Select all
sudo debian/config
I know templates is ok because if I write sometihng wrong it complains. for example removing a space, produces: "Template parse error near `Asi es', in stanza #1 of debian/templates"
If I make debuild, I get a package and with dpkg-i, the package is installed, but without answers.
What can I do to get questions to the user?
Thank's a lot!