mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
Drop support for end of life Ubuntu versions.
This commit is contained in:
parent
956ce6a845
commit
a06c0c3c11
1 changed files with 18 additions and 0 deletions
|
@ -966,6 +966,24 @@ __apt_get_upgrade_noinput() {
|
|||
}
|
||||
|
||||
|
||||
__check_end_of_life_versions() {
|
||||
|
||||
if [ "${DISTRO_NAME_L}" = "ubuntu" ]; then
|
||||
if ([ $DISTRO_MAJOR_VERSION -eq 10 ] && [ $DISTRO_MAJOR_VERSION -eq 10 ]) || \
|
||||
([ $DISTRO_MAJOR_VERSION -eq 11 ] && [ $DISTRO_MAJOR_VERSION -eq 04 ]) || \
|
||||
([ $DISTRO_MAJOR_VERSION -eq 11 ] && [ $DISTRO_MAJOR_VERSION -eq 10 ]); then
|
||||
echoerror "End of life distributions are not supported."
|
||||
echoerror "Please consider upgrading to the next stable. See:"
|
||||
echoerror " https://wiki.ubuntu.com/Releases"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Fail soon for end of life versions
|
||||
__check_end_of_life_versions
|
||||
|
||||
|
||||
#--- FUNCTION ----------------------------------------------------------------
|
||||
# NAME: copyfile
|
||||
# DESCRIPTION: Simple function to copy files. Overrides if asked.
|
||||
|
|
Loading…
Add table
Reference in a new issue