Skip to content
Snippets Groups Projects
Commit 587160c3 authored by Martin's avatar Martin
Browse files

check reboot required for rocky

parent 3777b6b9
No related branches found
No related tags found
1 merge request!251check reboot required for rocky
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
# 2022-10-14 v1.3 <axel.hahn@unibe.ch> fix debian output if /var/run/reboot-required.pkgs does not exist # 2022-10-14 v1.3 <axel.hahn@unibe.ch> fix debian output if /var/run/reboot-required.pkgs does not exist
# Shellfixes; add help # Shellfixes; add help
# 2023-03-29 v1.4 <martin.gasser@unibe.ch> add almalinux as distro # 2023-03-29 v1.4 <martin.gasser@unibe.ch> add almalinux as distro
# 2024-03-7 v1.4 <martin.gasser@unibe.ch> add rocky as distro
# ====================================================================== # ======================================================================
...@@ -75,7 +76,7 @@ esac ...@@ -75,7 +76,7 @@ esac
case $distro in case $distro in
"centos"|"almalinux") "centos"|"almalinux"|"rocky")
currentkernel=$(uname -r) currentkernel=$(uname -r)
out=$(rpm -q --last kernel | head -1 | grep -F $currentkernel) out=$(rpm -q --last kernel | head -1 | grep -F $currentkernel)
if [ -z "$out" ]; then if [ -z "$out" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment