Lucid's add-apt-repository does not support -y

This commit is contained in:
Pedro Algarvio 2012-10-13 12:08:06 +01:00
parent 762ac622df
commit 7f46c38289

View file

@ -45,8 +45,12 @@ if [ "$UNAME" = "Linux" ] ; then
log "Installing for Ubuntu Lucid/Precise."
do_with_root apt-get update
do_with_root apt-get -y install python-software-properties
do_with_root add-apt-repository -y ppa:saltstack/salt
do_with_root apt-get update
if [ $CODENAME = 'lucid' ]; then
do_with_root add-apt-repository ppa:saltstack/salt
else
do_with_root add-apt-repository -y ppa:saltstack/salt
fi
do_with_root apt-get update
do_with_root apt-get -y install salt-minion
else
log "Ubuntu $CODENAME is not supported."
@ -91,4 +95,4 @@ if [ "$UNAME" = "Linux" ] ; then
fi
log "Salt has been installed!"
trap - EXIT
trap - EXIT