Skip to content
Permalink
4.17.5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@mchyzer
Latest commit 7159150 Nov 25, 2023 History
3 contributors

Users who have contributed to this file

@mchyzer @chubing @credman
executable file 22 lines (17 sloc) 629 Bytes
#!/bin/bash
prep_daemon
prep_finish
setupFiles
runCommand_unsetAll
export GSH_JVMARGS="$GSH_JVMARGS -DENV=$ENV -DUSERTOKEN=$USERTOKEN"
# capture result of gsh, not tee
set -o pipefail
# openshift cannot do whoami
if [ "$GROUPER_GSH_USER" != "$(whoami)" ] && [ $EUID -eq 0 ]
then
echo "grouperContainer; INFO: (gsh file) sudo --preserve-env -u $GROUPER_GSH_USER bin/gsh.sh \"$@\" | tee /tmp/loggrouper"
sudo --preserve-env -u tomcat bin/gsh.sh "$@" | tee /tmp/loggrouper
else
echo "grouperContainer; INFO: (gsh file) bin/gsh.sh \"$@\" | tee /tmp/loggrouper"
exec bin/gsh.sh "$@" | tee /tmp/loggrouper
fi