Skip to content

Commit

Permalink
Support for Oracle Linux 8.x [tested in Oracle Linux 8.4]
Browse files Browse the repository at this point in the history
  • Loading branch information
discountscott committed Jun 3, 2021
1 parent 45fe746 commit fae5ab3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Requirements:
- CentOS Stream 8.x
- Rocky Linux 8.3RC1+
- Fedora 34
- Oracle Linux 8.x
- Root or Sudo permissions

Will Compile/Install:
Expand Down
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Parts of this script are based on the work of Perry Clark @ xTuple - [email protected]
#
# Notes:
# This only installs official Red Hat repo versions of PostgreSQL
# This only installs repo versions of PostgreSQL
# PLV8 will be compiled during install

if [[ $(id -u) -ne 0 ]]
Expand All @@ -23,7 +23,10 @@ if [[ $(id -u) -ne 0 ]]
exit 1
fi

if grep -q -i "Red Hat Enterprise Linux release 8" /etc/redhat-release; then
if grep -q -i "Oracle Linux Server release 8" /etc/oracle-release; then
echo "running Oracle Linux 8.x"
OS_VER="ORCL8"
elif grep -q -i "Red Hat Enterprise Linux release 8" /etc/redhat-release; then
echo "running RHEL 8.x"
OS_VER="RHEL8"
elif grep -q -i "Rocky Linux release 8" /etc/redhat-release; then
Expand Down Expand Up @@ -80,6 +83,8 @@ postgresql-setup initdb
echo "PLV8 compilation prereqs..."
if [ "$OS_VER" == "RHEL8" ]; then
subscription-manager repos --enable=codeready-builder-for-rhel-8-x86_64-rpms
elif [ "$OS_VER" == "ORCL8" ]; then
dnf config-manager --set-enabled ol8_codeready_builder
elif [ "$OS_VER" == "COSTR8" ]; then
dnf config-manager --set-enabled powertools
elif [ "$OS_VER" == "ROCKY8" ]; then
Expand Down

0 comments on commit fae5ab3

Please sign in to comment.