mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Lucid's add-apt-repository
does not support -y
This commit is contained in:
parent
762ac622df
commit
7f46c38289
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue