-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for Oracle Linux 8.x [tested in Oracle Linux 8.4]
- Loading branch information
1 parent
45fe746
commit fae5ab3
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ]] | ||
|
@@ -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 | ||
|
@@ -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 | ||
|