Skip to content

Commit

Permalink
4.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Mar 19, 2024
1 parent 6946135 commit 73617ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \

ARG GROUPER_CONTAINER_VERSION

ENV GROUPER_VERSION=4.11.3 \
GROUPER_CONTAINER_VERSION=4.11.3 \
ENV GROUPER_VERSION=4.12.0 \
GROUPER_CONTAINER_VERSION=4.12.0 \
JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto \
PATH=$PATH:$JAVA_HOME/bin \
GROUPER_HOME=/opt/grouper/grouperWebapp/WEB-INF
Expand Down
14 changes: 7 additions & 7 deletions container_files/usr-local-bin/librarySetupPipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ setupPipe() {

setupPipe_logging() {

if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/logpipe ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
# Make a "console" logging pipe that anyone can write too regardless of who owns the process.
setupPipe /tmp/logpipe
cat <> /tmp/logpipe &
Expand All @@ -21,14 +21,14 @@ setupPipe_logging() {

# Make loggers pipes for the supervisord connected apps' console, so that we can prepend the streams.
setupPipe_grouperLog() {
if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/loggrouper ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
setupPipe /tmp/loggrouper
(cat <> /tmp/loggrouper | awk -v ENV="$ENV" -v UT="$USERTOKEN" '{printf "grouper;console;%s;%s;%s\n", ENV, UT, $0; fflush()}' &>/tmp/logpipe) &
fi
}

setupPipe_httpdLog() {
if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/loghttpd ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
if [ "$GROUPER_RUN_APACHE" = "true" ]
then
setupPipe /tmp/loghttpd
Expand All @@ -38,7 +38,7 @@ setupPipe_httpdLog() {
}

setupPipe_shibdLog() {
if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/logshibd ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
if [ "$GROUPER_RUN_SHIB_SP" = "true" ]
then
if [ "$GROUPER_SHIB_LOG_USE_PIPE" = "true" ]
Expand All @@ -51,7 +51,7 @@ setupPipe_shibdLog() {
}

setupPipe_tomcatLog() {
if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/logtomcat ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
if [ "$GROUPER_RUN_TOMCAT" = "true" ] && [ "$GROUPER_LOG_TO_PIPE" = "true" ]
then
setupPipe /tmp/logtomcat
Expand All @@ -61,7 +61,7 @@ setupPipe_tomcatLog() {
}

setupPipe_tomcatAccessLog() {
if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/tomcat_access_log ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
if [ "$GROUPER_TOMCAT_LOG_ACCESS" = "true" ]; then

setupPipe /tmp/tomcat_access_log
Expand All @@ -71,7 +71,7 @@ setupPipe_tomcatAccessLog() {
}

setupPipe_supervisordLog() {
if [ "$GROUPER_USE_PIPES" == "true" ] && [ ! -e /tmp/logsuperd ]; then
if [ "$GROUPER_USE_PIPES" == "true" ]; then
setupPipe /tmp/logsuperd
(cat <> /tmp/logsuperd | awk -v ENV="$ENV" -v UT="$USERTOKEN" '{printf "supervisord;console;%s;%s;%s\n", ENV, UT, $0; fflush()}' &>/tmp/logpipe) &
fi
Expand Down

0 comments on commit 73617ee

Please sign in to comment.