Skip to content

Commit f81299c

Browse files
timschumiVladimir Kotal
authored andcommitted
docker: Deploy to root if path contains whitespace
1 parent 56ca605 commit f81299c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ if [ -z "$REINDEX" ]; then
55
REINDEX=10
66
fi
77

8+
if [[ -z "${OPENGROK_WEBAPP_CONTEXT}" || "${OPENGROK_WEBAPP_CONTEXT}" = *" "* ]]; then
9+
date +"%F %T Deployment path is empty or contains spaces. Deploying to root..."
10+
export OPENGROK_WEBAPP_CONTEXT="/"
11+
fi
12+
813
if [ "${OPENGROK_WEBAPP_CONTEXT}" = "/" ]; then
914
WAR_NAME="ROOT.war"
1015
else

0 commit comments

Comments
 (0)