From 4696de6645d186d521874cbe479cf7fe8d208ee3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 1 Jul 2024 14:11:47 +0200 Subject: [PATCH] add deprecation warning for CentOS 7 / RHEL 7 With this patch: sh -c install.sh # Executing docker install script, commit: DEPRECATION WARNING This Linux distribution (centos 7) reached end-of-life and is no longer supported by this script. No updates or security fixes will be released for this distribution, and users are recommended to upgrade to a currently maintained version of centos. Press Ctrl+C now to abort this script, or wait for the installation to continue. Signed-off-by: Sebastiaan van Stijn --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 29f98f12..9f36c2fd 100755 --- a/install.sh +++ b/install.sh @@ -473,6 +473,9 @@ do_install() { # Print deprecation warnings for distro versions that recently reached EOL, # but may still be commonly used (especially LTS versions). case "$lsb_dist.$dist_version" in + centos.7|rhel.7) + deprecation_notice "$lsb_dist" "$dist_version" + ;; debian.stretch|debian.jessie) deprecation_notice "$lsb_dist" "$dist_version" ;;