Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 04/12/2009, à 19:10

darkweaver87

Preseed files et dpkg-reconfigure

Bonjour à tous,

Je voudrais pré-remplir les réponses lors de l'installation de mes paquets.
Mes tests sont effectués sont Lenny.

Par exemple, pour exim4-config.

testaiclientlenny:~/demo# cat /tmp/automateit_temp_2yRTFBU7Zr 
exim4-config    exim4/dc_noalias_regenerate     boolean false
exim4-config    exim4/dc_smarthost      string
exim4-config    exim4/dc_relay_domains  string
exim4-config    exim4/dc_relay_nets     string
exim4-config    exim4/mailname  string  testaiclientlenny.test.com
exim4-config    exim4/dc_localdelivery  select  mbox format in /var/mail/
exim4-config    exim4/dc_local_interfaces       string  0.0.0.0
exim4-config    exim4/dc_minimaldns     boolean false
exim4-config    exim4/dc_other_hostnames        string  testaiclientlenny.test.com
exim4-config    exim4/dc_eximconfig_configtype  select  internet site; mail is sent and received directly using SMTP
exim4-config    exim4/no_config boolean true
exim4-config    exim4/hide_mailname     boolean
exim4-config    exim4/dc_postmaster     string  sysadmin@test.com
exim4-config    exim4/dc_readhost       string
exim4-config    exim4/use_split_config  boolean false
testaiclientlenny:~/demo# DEBIAN_FRONTEND=noninteractive dpkg-reconfigure exim4-config

Et lorsque que j'affiche le fichier de config généré, à ma grande suprise j'ai ça:

testaiclientlenny:~/demo# cat /etc/exim4/update-exim4.conf.conf 
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='local'
dc_other_hostnames='testaiclientlenny'
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Si quelqu'un a une idée sur la question je suis preneur big_smile

Merci d'avance.

Dernière modification par darkweaver87 (Le 04/12/2009, à 19:10)


Gentoo noyau 2.6.34-r6

Hors ligne