Skip to content
Snippets Groups Projects
Commit 808af863 authored by Martin's avatar Martin
Browse files

sudo missing in yum package check

parent 6665307d
No related branches found
No related tags found
1 merge request!2sudo missing in yum package check
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
# 2020-03-05 v1.3 <axel.hahn@iml.unibe.ch> switch to ph.* helper functions # 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) # 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-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(){ ...@@ -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'" `
# 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 ) local summary=$( cat $_yumout | grep security )
test -z "$summary" && summary='no data .. no packages to install' 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