Skip to content

Commit

Permalink
fix log4j again
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Dec 15, 2021
1 parent 4110e99 commit cf00fb7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ COPY container_files/usr-local-bin/ /usr/local/bin/
RUN chmod +x /usr/local/bin/*.sh
COPY container_files/httpd/* /etc/httpd/conf.d/
COPY container_files/shibboleth/* /etc/shibboleth/
RUN cp /dev/null /etc/httpd/conf.d/ssl.conf
RUN cp /dev/null /etc/httpd/conf.d/ssl.conf
RUN rm -f /opt/tomee/bin/log4j-*
COPY container_files/tier-support/log4j_fix/* /opt/tomee/bin/


# this is to improve openshift
RUN touch /opt/grouper/grouperEnv.sh \
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 0 additions & 17 deletions container_files/usr-local-bin/librarySetupFilesTomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

setupFilesTomcat() {
setupFilesTomcat_loggingSlf4j
setupFilesTomcat_log4j
setupFilesTomcat_turnOnAjp
setupFilesTomcat_supervisor
setupFilesTomcat_authn
Expand Down Expand Up @@ -219,20 +218,6 @@ setupFilesTomcat_loggingSlf4j() {

}

setupFilesTomcat_log4j() {

rm -f /opt/tomee/bin/log4j-*
returnCode=$?
echo "grouperContainer; INFO: (librarySetupFilesTomcat.sh-setupFilesTomcat_log4j) rm -f /opt/tomee/bin/log4j-* , result: $returnCode"
if [ $returnCode != 0 ]; then exit $returnCode; fi

cp /opt/tier-support/log4j_fix/*.jar /opt/tomee/bin/
returnCode=$?
echo "grouperContainer; INFO: (librarySetupFilesTomcat.sh-setupFilesTomcat_log4j) cp /opt/tier-support/log4j_fix/*.jar /opt/tomee/bin/ , result: $returnCode"
if [ $returnCode != 0 ]; then exit $returnCode; fi

}

setupFilesTomcat_supervisor() {

if [ "$GROUPER_RUN_TOMEE" = "true" ] && [ "$GROUPER_RUN_TOMCAT_NOT_SUPERVISOR" != "true" ]
Expand Down Expand Up @@ -289,7 +274,6 @@ setupFilesTomcat_unsetAll() {
unset -f setupFilesTomcat_unsetAll
unset -f setupFilesTomcat_accessLogs
unset -f setupFilesTomcat_loggingSlf4j
unset -f setupFilesTomcat_log4j
unset -f setupFilesTomcat_sessionTimeout
unset -f setupFilesTomcat_turnOnAjp

Expand All @@ -306,7 +290,6 @@ setupFilesTomcat_exportAll() {
export -f setupFilesTomcat_unsetAll
export -f setupFilesTomcat_accessLogs
export -f setupFilesTomcat_loggingSlf4j
export -f setupFilesTomcat_log4j
export -f setupFilesTomcat_sessionTimeout
export -f setupFilesTomcat_turnOnAjp
}
Expand Down

0 comments on commit cf00fb7

Please sign in to comment.