Skip to content

Commit

Permalink
Drop support for Ubuntu 20.04 (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Apr 10, 2024
1 parent 07eee0f commit c065fcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ upgrade_compose() {
fi
echo "Updating Docker Compose to V2"
if [[ "$__distro" = "ubuntu" ]]; then
if [ "${__os_major_version}" -lt 20 ]; then
if [ "${__os_major_version}" -lt 22 ]; then
echo "${__project_name} cannot update Docker Compose on Ubuntu ${__os_major_version}."
echo "Consider upgrading to 20.04, then 22.04 and then 24.04."
echo "Consider upgrading to 22.04 and then 24.04."
exit 1
fi
${__auto_sudo} apt-get update
Expand Down Expand Up @@ -244,9 +244,9 @@ continue? (no/yes) " yn
* ) echo "Aborting, no changes made"; return 0;;
esac
if [[ "$__distro" = "ubuntu" ]]; then
if [ "${__os_major_version}" -lt 20 ]; then
if [ "${__os_major_version}" -lt 22 ]; then
echo "${__project_name} cannot install Docker on Ubuntu ${__os_major_version}."
echo "Consider upgrading to 20.04, then 22.04 and then 24.04."
echo "Consider upgrading to 22.04 and then 24.04."
exit 1
fi
if [ -z "$(command -v docker)" ]; then
Expand Down Expand Up @@ -1131,9 +1131,9 @@ ${ENV_FILE}" 12 75

nag_os_version() {
if [[ "$__distro" = "ubuntu" ]]; then
if [ "${__os_major_version}" -lt 20 ]; then
if [ "${__os_major_version}" -lt 22 ]; then
echo
echo "Ubuntu ${__os_major_version} is older than the recommended 24.04, 22.04 or 20.04 version."
echo "Ubuntu ${__os_major_version} is older than the recommended 24.04 or 22.04 version."
echo
fi
fi
Expand Down

0 comments on commit c065fcc

Please sign in to comment.