I cant catch a break here!
This works:
Code:
#!/bin/bash
echo "" >> /etc/apt/sources.list
echo "#dotdeb" >> /etc/apt/sources.list
echo "deb http://nginx.org/packages/debian/ squeeze nginx" >> /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/debian/ squeeze nginx" >> /etc/apt/sources.list
apt-get update
apt-get install nginx
/etc/init.d/nginx start
This does not:
Code:
#!/bin/bash
echo "" >> /etc/apt/sources.list
echo "#dotdeb" >> /etc/apt/sources.list
echo "deb http://nginx.org/packages/debian/ squeeze nginx" >> /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/debian/ squeeze nginx" >> /etc/apt/sources.list
apt-get update
apt-get install -y nginx
/etc/init.d/nginx start
All I did was add -y. When I watch in console with -y, it runs throught the code and then appears to stop and then it just says:
Quote:
Debian GNU/Linux...etc
What gives!?