Skip to content

Commit

Permalink
Reland "Handle almalinux in CMK package installation script"
Browse files Browse the repository at this point in the history
- import GPG in Almalinux with gpg instead of rpm
- install OS packages with --allowerasing to upgrade required system packages

This reverts commit fffe79d.

CMK-9078

Change-Id: Idb31eeb8d9b0a4d61c45d67f7728260b7b6301d5
  • Loading branch information
JonasScharpf committed Oct 17, 2023
1 parent 8ccc491 commit 8544faf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ case "$DISTRO" in
# shellcheck disable=SC2046 # we want word splitting here
yum install -y $(cat "$TARGET_DIR"/needed-packages)
;;
almalinux-*)
gpg --import "$TARGET_DIR"/Check_MK-pubkey.gpg
# shellcheck disable=SC2046 # we want word splitting here
yum install -y --allowerasing $(cat "$TARGET_DIR"/needed-packages)
;;
sles-*)
add_gpg_key
# shellcheck disable=SC2046 # we want word splitting here
Expand All @@ -52,6 +57,10 @@ case "$DISTRO" in
# shellcheck disable=SC2046 # we want word splitting here
apt-get install -y $(cat "$TARGET_DIR"/needed-packages)
;;
*)
echo "ERROR: Unhandled DISTRO: $DISTRO"
exit 1
;;
esac

cleanup

0 comments on commit 8544faf

Please sign in to comment.