Support Non-LTS Ubuntu 21.04 & 21.10

Ubuntu 21.10 is out, adjust the script accordingly.
This commit is contained in:
Bo Zhang 2022-01-07 09:06:27 +08:00 committed by Pedro Algarvio
parent e7adfe409f
commit fb8105c15e

View file

@ -2919,7 +2919,7 @@ __enable_universe_repository() {
__install_saltstack_ubuntu_repository() {
# Workaround for latest non-LTS Ubuntu
if { [ "$DISTRO_MAJOR_VERSION" -eq 20 ] && [ "$DISTRO_MINOR_VERSION" -eq 10 ]; } || \
{ [ "$DISTRO_MAJOR_VERSION" -eq 21 ] && [ "$DISTRO_MINOR_VERSION" -eq 04 ]; }; then
[ "$DISTRO_MAJOR_VERSION" -eq 21 ]; then
echowarn "Non-LTS Ubuntu detected, but stable packages requested. Trying packages for previous LTS release. You may experience problems."
UBUNTU_VERSION=20.04
UBUNTU_CODENAME="focal"