From c3286ac23efa7f5b4c5cec25d3f21606dd1150bd Mon Sep 17 00:00:00 2001 From: Vernon Cole Date: Mon, 3 Feb 2020 16:57:11 -0700 Subject: [PATCH] first changes to support Ubuntu 20.04 --- bootstrap-salt.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 43d3ea1..d2af224 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -1,3 +1,4 @@ + #!/bin/sh - # WARNING: Changes to this file in the salt repo will be overwritten! @@ -1442,6 +1443,9 @@ __ubuntu_codename_translation() { "18") DISTRO_CODENAME="bionic" ;; + "20") + DISTRO_CODENAME="focal" + ;; *) DISTRO_CODENAME="trusty" ;; @@ -2653,7 +2657,7 @@ __install_salt_from_repo_post_neon() { if ! __check_command_exists "${_pip_cmd} --version"; then __PACKAGES="${_py_pkg}-pip gcc" # shellcheck disable=SC2086 - if [ "$DISTRO_NAME_L" = "debian" ];then + if [ "$DISTRO_NAME_L" = "debian" ] || [ "$DISTRO_NAME_L" = "ubuntu" ];then __PACKAGES="${__PACKAGES} ${_py_pkg}-dev" __apt_get_install_noinput ${__PACKAGES} || return 1 else @@ -2769,9 +2773,9 @@ __enable_universe_repository() { __install_saltstack_ubuntu_repository() { # Workaround for latest non-LTS ubuntu - if [ "$DISTRO_MAJOR_VERSION" -gt 18 ] || \ + if [ "$DISTRO_MAJOR_VERSION" -eq 19 ] || \ { [ "$DISTRO_MAJOR_VERSION" -eq 18 ] && [ "$DISTRO_MINOR_VERSION" -eq 10 ]; }; then - echowarn "Non-LTS Ubuntu detected, but stable packages requested. Trying packages for latest LTS release. You may experience problems." + echowarn "Non-LTS Ubuntu detected, but stable packages requested. Trying packages for previous LTS release. You may experience problems." UBUNTU_VERSION=18.04 UBUNTU_CODENAME="bionic" else