Skip to content

Commit

Permalink
fixed setenv.sh for container restart
Browse files Browse the repository at this point in the history
  • Loading branch information
mttfranci committed Mar 24, 2024
1 parent f3fc823 commit 1deb950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 0 additions & 20 deletions bin/setenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1deb950

Please sign in to comment.