Skip to content

Commit

Permalink
Add compatibility for Rhel
Browse files Browse the repository at this point in the history
  • Loading branch information
Hutch-45D committed Feb 3, 2025
1 parent 660eec7 commit 701a26b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions rocky8-preconfig-ceph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ID=$(grep -w ID= /etc/os-release | cut -d= -f2 | tr -d '"')
Platform=$(grep -w PLATFORM_ID= /etc/os-release | cut -d= -f2 | tr -d '"')

# Check if the OS is Rocky Linux 8
if [[ "$ID" != "rocky" || "$Platform" != "platform:el8" ]]; then
echo "OS is not Rocky8 Linux"
if [[ "$ID" != "rocky" && "$ID" != "rhel" || "$Platform" != "platform:el8" ]]; then
echo "OS is not Rocky8 or Rhel8 Linux"
exit 1
fi

Expand Down Expand Up @@ -45,7 +45,7 @@ Welcome to the
Rocky8 Preconfiguration Script.
This script will install epel-release, zfs, cockpit and add our repos. Houston UI will be
This script will install epel-release, cockpit and add our repos. Houston UI will be
configured with our latest tools and packages.
Expand Down
4 changes: 2 additions & 2 deletions rocky9-preconfig-ceph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ID=$(grep -w ID= /etc/os-release | cut -d= -f2 | tr -d '"')
Platform=$(grep -w PLATFORM_ID= /etc/os-release | cut -d= -f2 | tr -d '"')

# Check if the OS is Rocky Linux 9
if [[ "$ID" != "rocky" || "$Platform" != "platform:el9" ]]; then
echo "OS is not Rocky9 Linux"
if [[ "$ID" != "rocky" && "$ID" != "rhel" || "$Platform" != "platform:el9" ]]; then
echo "OS is not Rocky9 or Rhel9 Linux"
exit 1
fi

Expand Down

0 comments on commit 701a26b

Please sign in to comment.