I am trying to write a really simple script to install postfix. my script begins like this :
#!/bin/sh
echo "this is a script tp install postfix for virtual domains "
apt-get install postfix-mysql
apt-get install mutt
apt-get install telnet
apt get install mysql-common mysql-client mysql-server libmysqlclient15-dev sysv-rc-conf
apt-get instal openssl
apt-get install libsasl2 libsasl2-modules libsasl2-modules-sql libauthen-sasl-cyrus-perl libauthen-sasl-perl
apt-get install courier-base courier-authlib-mysql courier-ssl courier-pop
sysv-rc-conf --level 235 mysqld on
sysv-rc-conf --level 235 postfix on
apt-get install apache2
apt-get install vim ..... and so on
but as soon as the scipt executes it tries to install postfix-mysql , the apt-get progam asks the question " Do you want to continue [Y/n]? "
i have to keep pressing " y " ...... what do i put in my script that will automate this , without asking me the question " Do you want to continue [Y/n]?"
Thanks for all the help!!
On Feb 7, 2008 5:34 PM, Agnello George agnello.dsouza@gmail.com wrote:
but as soon as the scipt executes it tries to install postfix-mysql , the apt-get progam asks the question " Do you want to continue [Y/n]? "
i have to keep pressing " y " ...... what do i put in my script that will automate this , without asking me the question " Do you want to continue [Y/n]?"
apt-get install -y <name> Does that work?
On 2/7/08, Mehul Ved mehul.n.ved@gmail.com wrote:
On Feb 7, 2008 5:34 PM, Agnello George agnello.dsouza@gmail.com wrote:
but as soon as the scipt executes it tries to install postfix-mysql ,
the
apt-get progam asks the question " Do you want to continue [Y/n]? "
i have to keep pressing " y " ...... what do i put in my script that
will
automate this , without asking me the question " Do you want to continue [Y/n]?"
apt-get install -y <name> Does that work?
Thanks a lot dude !!!!!! that worked !!! :-)