This repository was archived by the owner on Jun 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ USER seluser
644644# Chrome webdriver
645645# ==================
646646# How to get cpu arch dynamically: $(lscpu | grep Architecture | sed "s/^.*_//")
647- ENV CHROME_DRIVER_VERSION="2.32 " \
647+ ENV CHROME_DRIVER_VERSION="2.33 " \
648648 CHROME_DRIVER_BASE="chromedriver.storage.googleapis.com" \
649649 CPU_ARCH="64"
650650ENV CHROME_DRIVER_FILE="chromedriver_linux${CPU_ARCH}.zip"
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ if [ -f /var/run/secrets/kubernetes.io/serviceaccount/token ]; then
1818 export USE_KUBERNETES=true
1919fi
2020
21+ # ==============================================
22+ # OpenShift or non-sudo environments support
23+ # ==============================================
24+
2125CURRENT_UID=" $( id -u) "
2226CURRENT_GID=" $( id -g) "
2327
@@ -34,7 +38,7 @@ if [ "${REMOVE_SELUSER_FROM_SUDOERS_FOR_TESTING}" == "true" ]; then
3438 fi
3539fi
3640
37- # Flag to know if we have sudo acess
41+ # Flag to know if we have sudo access
3842if sudo pwd > /dev/null 2>&1 ; then
3943 export WE_HAVE_SUDO_ACCESS=" true"
4044else
4549if [ ${CURRENT_GID} -ne 1000 ]; then
4650 if [ " ${WE_HAVE_SUDO_ACCESS} " == " true" ]; then
4751 sudo groupadd --gid ${CURRENT_GID} selgroup
48- # sudo gpasswd -a ${USER} seluser
49- sudo gpasswd -a ${USER} selgroup
52+ sudo gpasswd -a $( whoami) selgroup
5053 fi
5154fi
5255
You can’t perform that action at this time.
0 commit comments