Skip to content

Commit

Permalink
Update additional logback.xml file
Browse files Browse the repository at this point in the history
  • Loading branch information
cachemeoutside committed Dec 22, 2023
1 parent 1fd0828 commit 45d488d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ fi

# If LOGBACK_URL is defined, download and insert logback.xml file into war file
if [[ ! -z "${LOGBACK_URL}" ]]; then
zip -qd /usr/local/cantaloupe/cantaloupe-*.*ar WEB-INF/classes/logback.xml
zip -qd /usr/local/cantaloupe/cantaloupe-*.*ar WEB-INF/classes/logback.xml logback.xml
cd /tmp
mkdir -p WEB-INF/classes WEB-INF/lib
curl -so WEB-INF/classes/logback.xml ${LOGBACK_URL}
curl -so logback.xml ${LOGBACK_URL}

# Package up the logback file and dependent jars
zip -qur /usr/local/cantaloupe/cantaloupe-*.*ar WEB-INF
zip -qur /usr/local/cantaloupe/cantaloupe-*.*ar WEB-INF logback.xml

# Clean up scratch space
rm -rf /tmp/WEB-INF
Expand Down

0 comments on commit 45d488d

Please sign in to comment.