Skip to content

Commit 750f81c

Browse files
committed
scripts/install-oci-cli: don't use sudo to run DNF
For unknown reason, the script started to fail with: ``` sudo: PAM account management error: Authentication service cannot retrieve authentication info sudo: a password is required ``` Since the other script that runs DNF does not use sudo, let's not use it in this one either. Signed-off-by: Tomáš Hozza <[email protected]>
1 parent cf187ce commit 750f81c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/scripts/install-oci-cli.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/
1010
# install python3.11 if the python3 version is 3.12 or newer
1111
# https://github.com/oracle/oci-cli/issues/742
1212
if [[ $(python3 -c "import sys; too_new = sys.version_info >= (3, 12, 0); print(1 if too_new else 0)") -eq 1 ]]; then
13-
sudo dnf install -y python3.11
14-
sudo dnf clean all
13+
dnf install -y python3.11
14+
dnf clean all
1515
sed -i 's/for try_python_exe in /&python3.11 /' "${INSTALL_SCRIPT_PATH}"
1616
fi
1717

0 commit comments

Comments
 (0)