mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
After 11.10, not 12.04, software-properties-common
should be installed instead of python-software-properties
This commit is contained in:
parent
cd3c82dea7
commit
75dcdeb2cd
1 changed files with 4 additions and 4 deletions
|
@ -1141,8 +1141,8 @@ __enable_universe_repository() {
|
|||
|
||||
install_ubuntu_deps() {
|
||||
apt-get update
|
||||
if ([ $DISTRO_MAJOR_VERSION -eq 12 ] && [ $DISTRO_MINOR_VERSION -gt 04 ]) || [ $DISTRO_MAJOR_VERSION -gt 12 ]; then
|
||||
# Above Ubuntu 12.04 add-apt-repository is in a different package
|
||||
if [ $DISTRO_MAJOR_VERSION -eq 12 ] || [ $DISTRO_MAJOR_VERSION -gt 12 ]; then
|
||||
# Above Ubuntu 11.10 add-apt-repository is in a different package
|
||||
__apt_get_install_noinput software-properties-common || return 1
|
||||
else
|
||||
__apt_get_install_noinput python-software-properties || return 1
|
||||
|
@ -1168,8 +1168,8 @@ install_ubuntu_deps() {
|
|||
|
||||
install_ubuntu_daily_deps() {
|
||||
install_ubuntu_deps
|
||||
if ([ $DISTRO_MAJOR_VERSION -eq 12 ] && [ $DISTRO_MINOR_VERSION -gt 04 ]) || [ $DISTRO_MAJOR_VERSION -gt 12 ]; then
|
||||
# Above Ubuntu 12.04 add-apt-repository is in a different package
|
||||
if ([ $DISTRO_MAJOR_VERSION -eq 12 ] || [ $DISTRO_MAJOR_VERSION -gt 12 ]; then
|
||||
# Above Ubuntu 11.10 add-apt-repository is in a different package
|
||||
__apt_get_install_noinput software-properties-common || return 1
|
||||
else
|
||||
__apt_get_install_noinput python-software-properties || return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue