@@ -131,7 +131,7 @@ Supported Environment Variables for configuring the default setup:
131
131
- OPENGROK_SCAN_REPOS Disable Scan for repositories (*)
132
132
- OPENGROK_SCAN_DEPTH How deep should scanning for repos go
133
133
(by default 3 directories from SRC_ROOT)
134
- - OPENGROK_WEBAPP_CFGADDR Web app address to send configuration to
134
+ - OPENGROK_WEBAPP_CFGADDR Web application URI to send configuration to
135
135
(use "none" to avoid sending it to web app)
136
136
- OPENGROK_WEBAPP_CONTEXT Context URL of the OpenGrok webapp
137
137
(by default /source).
@@ -368,7 +368,6 @@ DefaultInstanceConfiguration()
368
368
# SKIN='--style default'
369
369
370
370
# OPTIONAL: Configuration Address (host:port)
371
- # (conf/web.xml default is localhost:2424)
372
371
WEBAPP_CONFIG=" "
373
372
if [ -n " ${OPENGROK_WEBAPP_CFGADDR} " ]; then
374
373
WEBAPP_CONFIG_ADDRESS=${OPENGROK_WEBAPP_CFGADDR}
@@ -1012,11 +1011,11 @@ DeployWar()
1012
1011
FatalError " Web Application Installation FAILED"
1013
1012
fi
1014
1013
1015
- # If user does not use default OPENGROK_INSTANCE_BASE or default
1016
- # WEBAPP_CONFIG_ADDRESS, then attempt to extract WEB-INF/web.xml from
1017
- # source.war using jar or zip utility, update the hardcoded values and
1018
- # then update source.war with the new WEB-INF/web.xml
1019
- if [ " ${OPENGROK_INSTANCE_BASE} " != ' /var/opengrok' ] || [ " ${WEBAPP_CONFIG_ADDRESS} " != ' localhost:2424 ' ]
1014
+ # If user does not use default OPENGROK_INSTANCE_BASE then attempt to
1015
+ # extract WEB-INF/web.xml from source.war using jar or zip utility, update
1016
+ # the hardcoded values and then update source.war with the new
1017
+ # WEB-INF/web.xml.
1018
+ if [ " ${OPENGROK_INSTANCE_BASE} " != ' /var/opengrok' ]
1020
1019
then
1021
1020
EXTRACT_COMMAND=" "
1022
1021
COMPRESS_COMMAND=" "
@@ -1042,14 +1041,6 @@ DeployWar()
1042
1041
mv " ${warTarget} /WEB-INF/web.xml.tmp" \
1043
1042
" ${warTarget} /WEB-INF/web.xml"
1044
1043
fi
1045
- if [ " ${WEBAPP_CONFIG_ADDRESS} " != ' localhost:2424' ]
1046
- then
1047
- sed -e ' s/localhost:2424/' " $WEBAPP_CONFIG_ADDRESS " ' /g' \
1048
- " ${warTarget} /WEB-INF/web.xml" \
1049
- > " ${warTarget} /WEB-INF/web.xml.tmp"
1050
- mv " ${warTarget} /WEB-INF/web.xml.tmp" \
1051
- " ${warTarget} /WEB-INF/web.xml"
1052
- fi
1053
1044
eval " ${COMPRESS_COMMAND} ${warTarget} /${FINAL_WAR_NAME} .war WEB-INF/web.xml"
1054
1045
rm -rf " ${warTarget} /WEB-INF"
1055
1046
fi
0 commit comments