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
Commits
eba4a28a
Commit
eba4a28a
authored
2 years ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
add almalinux in check_reboot
parent
d2525148
Branches
Branches containing commit
No related tags found
1 merge request
!62
add almalinux in check_reboot
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_reboot_required
+2
-1
2 additions, 1 deletion
check_reboot_required
with
2 additions
and
1 deletion
check_reboot_required
+
2
−
1
View file @
eba4a28a
...
...
@@ -13,6 +13,7 @@
# 2020-03-05 v1.2 <axel.hahn@iml.unibe.ch> switch to ph.* helper functions
# 2022-10-14 v1.3 <axel.hahn@unibe.ch> fix debian output if /var/run/reboot-required.pkgs does not exist
# Shellfixes; add help
# 2023-03-29 v1.4 <martin.gasser@unibe.ch> add almalinux as distro
# ======================================================================
...
...
@@ -74,7 +75,7 @@ esac
case
$distro
in
"centos"
)
"centos"
|
"almalinux"
)
currentkernel
=
$(
uname
-r
)
out
=
$(
rpm
-q
--last
kernel |
head
-1
|
grep
-F
$currentkernel
)
if
[
-z
"
$out
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment