Skip to content
Snippets Groups Projects
Commit dded08c9 authored by Gasser Martin (mg20u947)'s avatar Gasser Martin (mg20u947)
Browse files

Merge branch 'packages2install' into 'master'

sudo missing in yum package check

See merge request !2
parents 6665307d 808af863
No related branches found
No related tags found
1 merge request!2sudo missing in yum package check
......@@ -16,6 +16,7 @@
# 2020-03-05 v1.3 <axel.hahn@iml.unibe.ch> switch to ph.* helper functions
# 2020-03-11 v1.4 <axel.hahn@iml.unibe.ch> add -c -w limits; added perfdata (yum)
# 2021-05-11 v1.4 <axel.hahn@iml.unibe.ch> added centos8 support
# 2021-08-20 v1.5 <martin.gasser@iml.unibe.ch> bug fixing - missing sudo in yum command
# ======================================================================
......@@ -79,7 +80,7 @@ function checkYum(){
# 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 > $_yumout 2>&1"
ph.execIfReady "sudo /usr/bin/yum --security check-update > $_yumout 2>&1"
local summary=$( cat $_yumout | grep security )
test -z "$summary" && summary='no data .. no packages to install'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment