Skip to content
Snippets Groups Projects
Commit 0f7f56f7 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

eol check: detect centos stream

parent df20e4be
No related branches found
No related tags found
No related merge requests found
...@@ -45,12 +45,13 @@ ...@@ -45,12 +45,13 @@
# 2020-02-21 v1.0 <axel.hahn@iml.unibe.ch> # 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 # 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-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 . `dirname $0`/inc_pluginfunctions
eolcfg="${0}-data/*.cfg" eolcfg="${0}-data/*.cfg"
_version="0.3" _version="1.3"
# --- limits # --- limits
typeset -i iDaysWarn=365 typeset -i iDaysWarn=365
...@@ -80,6 +81,7 @@ function autodetect(){ ...@@ -80,6 +81,7 @@ function autodetect(){
# see inc_pluginfunctions # see inc_pluginfunctions
myKey=`ph.getOS` myKey=`ph.getOS`
myVersion=`ph.getOSMajor` myVersion=`ph.getOSMajor`
test "$myKey" = "centos" && grep -i stream /etc/centos-release >/dev/null 2>&1 && myVersion="${myVersion}-stream"
;; ;;
'mysqlany') 'mysqlany')
local _tmpfile=/tmp/detect_mysql_$$ local _tmpfile=/tmp/detect_mysql_$$
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment