Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Merge requests
!2
sudo missing in yum package check
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
sudo missing in yum package check
packages2install
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Gasser Martin (mg20u947)
requested to merge
packages2install
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
check_packages2install bug fix
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
808af863
1 commit,
3 years ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
check_packages2install
+
2
−
1
Options
@@ -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'
Loading