Pre-configuring packages?
Peter Mottram
peter at sysnix.com
Mon Jan 26 19:49:48 CET 2004
As this is Debian then debconf-communicate is the best mechanism if the
package plays ball properly with debconf. Here is an example I use for
openssh in a class script for openvpn......
$ROOTCMD /bin/sh -c \
'echo "set openvpn/create_tun true" | debconf-communicate'
$ROOTCMD /usr/sbin/dpkg-reconfigure -f noninteractive openvpn
I have had situations where this fails and for those have ended up
downloading a package using wget and then simply echoing responses through
a 'dpkg -i' in a class script.
R.
PeteM
On 26 Jan 2004, Dylan Vaughn wrote:
>
> hey all,
>
> what is the best way to feed configuration information to packages using
> FAI?
>
> for example, at the moment i'm working on setting up a generic web
> server type system which has apache and php4 (among other software).
> apache installs fine, but when php4 is installed, it asks a couple of
> questions in the configuration process (re modifying the httpd.conf and
> restarting apache) which stops the auto install. how can i put these
> options into a file or something so that i can keep it as an automatic
> install?
>
> thanks,
>
> dylan
>
>
>
>
More information about the linux-fai
mailing list