diff --git a/CHANGELOG.md b/CHANGELOG.md index 25c4fb3..00cf1d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.2.1] - 2024-03-24 + +### Fixed + +- fixed setenv.sh for container restart + ## [1.2.0] - 2024-03-23 ### Added diff --git a/bin/setenv.sh b/bin/setenv.sh index 7f147e4..dcd3673 100644 --- a/bin/setenv.sh +++ b/bin/setenv.sh @@ -37,26 +37,6 @@ replace_in_file() { esac } -## Remove file comments -xmlstarlet ed -L -d "//comment()" ${INSTALL_DIR}/conf/server.xml || { - echo "ERROR during xmlstarlet processing (xml comments removal)" - exit 1 -} - -## Remove AJP connector -xmlstarlet ed -L -d '//Connector[@protocol="AJP/1.3"]' ${INSTALL_DIR}/conf/server.xml || { - echo "ERROR during xmlstarlet processing (AJP connector removal)" - exit 1 -} - -# Tomcat HTTP Thread pool configuration -xmlstarlet ed -L -s "/Server/Service/Connector" -t attr -n "maxThreads" -v "${HTTP_THREAD_MAX}" \ - -s "/Server/Service/Connector" -t attr -n "minSpareThreads" -v "${HTTP_THREAD_MIN}" \ - ${INSTALL_DIR}/conf/server.xml || { - echo "ERROR during xmlstarlet processing (configuring threads)" - exit 1 -} - if [ "${SKIP_PROXY}" = "true" ]; then echo "Skipping tomcat proxy configuration" else