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

added centos8 support

parent cf3c8d29
No related branches found
No related tags found
No related merge requests found
...@@ -75,8 +75,14 @@ function checkApt(){ ...@@ -75,8 +75,14 @@ function checkApt(){
# check updates with yum and exit script # check updates with yum and exit script
function checkYum(){ function checkYum(){
local _yumout=/tmp/yumoutput.log
# summary=`ph.execIfReady "/usr/bin/yum --security check-update 2>&1 | fgrep 'security'" `
# summary=`ph.execIfReady "/usr/bin/yum --security check-update 2>&1 | fgrep 'security'" `
ph.execIfReady "/usr/bin/yum --security check-update 2>&1 > $_yumout"
local summary=$( cat $_yumout | grep security )
test -z "$summary" && summary='no data .. no packages to install'
summary=`ph.execIfReady "/usr/bin/yum --security check-update 2>&1 | fgrep 'security'" `
# example outputs: # example outputs:
# I No packages needed for security; 223 packages available # I No packages needed for security; 223 packages available
...@@ -98,6 +104,9 @@ function checkYum(){ ...@@ -98,6 +104,9 @@ function checkYum(){
ph.status "$summary" ph.status "$summary"
echo "[yum]" echo "[yum]"
cat $_yumout
rm -f yumout
echo echo
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment