diff --git a/check_eol b/check_eol index 8f2e13fecf95d7b9e7e9934b1e7097bffd74fdaf..40b8ddf70df82b2a0d332d1ab6cf7f9481afce01 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_$$