Skip to content

Commit

Permalink
GRP-2798: change container to slf4j .25
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed May 17, 2020
1 parent f551cf5 commit ef5afe3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion container_files/usr-local-bin/librarySetupFilesTomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

setupFilesTomcat() {
setupFilesTomcat_logging
setupFilesTomcat_loggingSlf4j
setupFilesTomcat_supervisor
setupFilesTomcat_authn
setupFilesTomcat_context
Expand Down Expand Up @@ -90,6 +91,16 @@ setupFilesTomcat_logging() {

}

setupFilesTomcat_loggingSlf4j() {

rm -v /opt/tomee/lib/slf4j-api*.jar
rm -v /opt/tomee/lib/slf4j-jdk*.jar
rm -v /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-jdk*.jar
cp -v /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-api-*.jar /opt/tomee/lib
cp -v /opt/grouper/grouperWebapp/WEB-INF/lib/slf4j-log4j*.jar /opt/tomee/lib

}

setupFilesTomcat_supervisor() {

if [ "$GROUPER_RUN_TOMEE" = "true" ] && [ "$GROUPER_RUN_TOMCAT_NOT_SUPERVISOR" != "true" ]
Expand All @@ -110,6 +121,7 @@ setupFilesTomcat_unsetAll() {
unset -f setupFilesTomcat_supervisor
unset -f setupFilesTomcat_unsetAll
unset -f setupFilesTomcat_accessLogs
unset -f setupFilesTomcat_loggingSlf4j

}

Expand All @@ -123,7 +135,7 @@ setupFilesTomcat_exportAll() {
export -f setupFilesTomcat_supervisor
export -f setupFilesTomcat_unsetAll
export -f setupFilesTomcat_accessLogs

export -f setupFilesTomcat_loggingSlf4j
}

# export everything
Expand Down

0 comments on commit ef5afe3

Please sign in to comment.