>From a MySQL setup script: echo "mysql-server-5.1 mysql-server/root_password password $1" | debconf-set-selections echo "mysql-server-5.1 mysql-server/root_password_again password $1" | debconf-set-selections apt-get -y install mysql-server mysql-client
HTH, Justin On Fri, Apr 23, 2010 at 7:14 PM, <da...@lang.hm> wrote: > > On Fri, 23 Apr 2010, Ben Poliakoff wrote: > > > * da...@lang.hm <da...@lang.hm> [100423 16:46]: > >> hopefully this is a quick answer fro someone > >> > >> I am scripting a upgrade on a debian derived system and one particular > >> package insists on prompting me for infomation. I don't want to have to > >> have someone sit and tell it to shutup on each of a couple hundred > >> systems. > >> > >> I know there is a preseeding option for this, but what I'm finding from a > >> google search is horrible overkill (talking about requireing an initrd, > >> etc. I'm not rebuilding the machine, just scripting one dpkg -i command) > >> > >> anyone have a quick pointer they can send me? > >> > > > > Setting the environment variable DEBIAN_FRONTEND=noninteractive will > > prevent dpkg from being interactive. > > > > If you're comfortable with just sticking with your old configs you can > > also add this line to /etc/dpkg/dpkg.cfg: > > > > force-confold > > > > My cfengine invocations of dpkg run that way. > > I've done force-confold, which eliminates some of the prompts, the one > remaining one is mdadm whhich wants me to tell it what drives it needs to > scan on boot, and if it should auto-start. > > the default appears to be 'all' and 'yes', when what I want is 'none' and > 'no' > > David Lang > _______________________________________________ > Discuss mailing list > Discuss@lopsa.org > http://lopsa.org/cgi-bin/mailman/listinfo/discuss > This list provided by the League of Professional System Administrators > http://lopsa.org/ _______________________________________________ Discuss mailing list Discuss@lopsa.org http://lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/