From 5a1a00df3a13d43fe7a9bd06445b07918c5b1cbc Mon Sep 17 00:00:00 2001 From: "BordenIT, LLC Admin" <49888529+bordenit@users.noreply.github.com> Date: Fri, 16 Oct 2020 16:29:51 -0400 Subject: [PATCH] xpath fix Fix for when there are multiple context paths --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2f2c402..a9f1ecf 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -116,7 +116,7 @@ if [ -n "${X_CONTEXT_PATH}" ]; then if [ ! -f ${CONFLUENCE_INSTALL}/.modified.path ]; then echo "Modifying server.xml to use context path: '${X_CONTEXT_PATH}' instead of the default '' " - xmlstarlet ed --inplace --pf --ps --update '//Context/@path' \ + xmlstarlet ed --inplace --pf --ps --update '//Context[@docBase="../confluence"]/@path' \ --value "${X_CONTEXT_PATH}" "${CONFLUENCE_INSTALL}/conf/server.xml" touch ${CONFLUENCE_INSTALL}/.modified.path