Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
GRP-3093: sudo should pass env in container
mchyzer committed Jan 19, 2021
1 parent 50b6699 commit 3442013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container_files/usr-local-bin/gsh
@@ -10,7 +10,7 @@ export GSH_JVMARGS="$GSH_JVMARGS -DENV=$ENV -DUSERTOKEN=$USERTOKEN"
# openshift cannot do whoami
if [ "$GROUPER_GSH_CHECK_USER" = "true" ] && [ "$GROUPER_GSH_USER" != "$(whoami)" ]
then
sudo -u tomcat bin/gsh.sh "$@" | tee /tmp/loggrouper
sudo --preserve-env -u tomcat bin/gsh.sh "$@" | tee /tmp/loggrouper
else
exec bin/gsh.sh "$@" | tee /tmp/loggrouper

0 comments on commit 3442013

Please sign in to comment.