# ---------------------------------------------------------------------------- # # EOL - End of life detection - Warn before reaching end of life # # AUTODETECT LINUX OS # # ---------------------------------------------------------------------------- # 2021-11-02 v1.0 <axel.hahn@iml.unibe.ch> # ---------------------------------------------------------------------------- myKey=`ph.getOS` myVersion=`ph.getOSMajor` case "$myKey" in centos) # detect centos stream grep -i stream /etc/centos-release >/dev/null 2>&1 && myVersion="${myVersion}-stream" ;; *) echo no special handling esac # ---------------------------------------------------------------------------- echo "|$myKey|$myVersion"