[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

The config script in Debconf


I made a structure debconf package, and build deb.
I'm testing the debconf and yours templates.
Follow the guide's debconf, i just read the script
config is executed before the package has been
installed. When I run this script not happen.
I just configure the debconf use dialog. I think the
window with a question must come in screen. But it's
not happen. Somebody, can to help me ?


My debian/config and debian/template is :

# Source debconf library.
. /usr/share/debconf/confmodule
# Do you like debian?
db_input medium foo/like_debian || true
# Check their answer.
db_get foo/like_debian
if [ "$RET" = "false" ]; then
    # Poor misguided one..
        db_input high foo/why_debian_is_great || true

And template:

Template: foo/like_debian
Type: boolean
Description: Do you like Debian?
 We'd like to know if you like the Debian GNU/Linux

Template: foo/why_debian_is_great
Type: note
Description: Poor misguided one. Why are you
installing this package?
Debian is great. As you continue using Debian, we hope
you willdiscover the error in your ways.


Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! 

Reply to: