From 4a226048a0e449a82ec71d1800598310895a0719 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sat, 12 Oct 2024 04:43:56 +0300 Subject: [PATCH] updated install_oracle_client.sh --- install/install_oracle_client.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/install_oracle_client.sh b/install/install_oracle_client.sh index 01a48572947..862845a8aa5 100755 --- a/install/install_oracle_client.sh +++ b/install/install_oracle_client.sh @@ -60,6 +60,10 @@ version="${1:-latest}" timestamp "Installing Oracle InstantClient" echo +if [ "$EUID" != 0 ]; then + die "You need to be root to run this script as it installs software" +fi + # xargs is needed by install_packages_if_absent.sh if ! type -P xargs &>/dev/null; then "$srcdir/../packages/install_packages.sh" findutils # contains xargs for RHEL8