From 0f7f56f72b60dc1ba5e42e20b59d1ae8cf275b01 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 2 Nov 2021 10:53:18 +0100
Subject: [PATCH] eol check: detect centos stream

---
 check_eol | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/check_eol b/check_eol
index 8f2e13f..40b8ddf 100755
--- a/check_eol
+++ b/check_eol
@@ -45,12 +45,13 @@
 # 2020-02-21  v1.0  <axel.hahn@iml.unibe.ch>
 # 2020-03-05  v1.1  <axel.hahn@iml.unibe.ch> switch to ph.* helper functions
 # 2021-03-26  v1.2  <axel.hahn@iml.unibe.ch> test major version if minor version was not detected
+# 2021-11-02  v1.3  <axel.hahn@iml.unibe.ch> detect centos stream
 # ======================================================================
 
 . `dirname $0`/inc_pluginfunctions
 eolcfg="${0}-data/*.cfg"
 
-_version="0.3"
+_version="1.3"
 
 # --- limits
 typeset -i iDaysWarn=365
@@ -80,6 +81,7 @@ function autodetect(){
             # see inc_pluginfunctions
             myKey=`ph.getOS`
             myVersion=`ph.getOSMajor`
+            test "$myKey" = "centos" && grep -i stream /etc/centos-release >/dev/null 2>&1 && myVersion="${myVersion}-stream"
             ;;
         'mysqlany')            
             local _tmpfile=/tmp/detect_mysql_$$
-- 
GitLab