File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 37
37
# - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution
38
38
# - OPENGROK_INSTANCE_BASE Base Directory of the OpenGrok User Data Area
39
39
# - OPENGROK_SRC_ROOT directory with files to be indexed
40
+ # - OPENGROK_DATA_ROOT directory where index and cache files are generated
40
41
# - OPENGROK_CTAGS Full path to Exuberant or Universal CTags binary
41
42
# - OPENGROK_CTAGS_OPTIONS_FILE Full path to file with extra command line
42
43
# options for CTags program (for its --options
@@ -222,7 +223,11 @@ DefaultInstanceConfiguration()
222
223
# REQUIRED: OpenGrok Generate Data Root
223
224
# (for Lucene index and hypertext cross-references)
224
225
# This area is rebuilt by "update" / "updateQuietly"
225
- DATA_ROOT=" ${OPENGROK_INSTANCE_BASE} /data"
226
+ if [ -n " ${OPENGROK_DATA_ROOT} " ]; then
227
+ DATA_ROOT=" ${OPENGROK_DATA_ROOT} "
228
+ else
229
+ DATA_ROOT=" ${OPENGROK_INSTANCE_BASE} /data"
230
+ fi
226
231
227
232
# OPTIONAL: User Provided Source Path to Description Mapping
228
233
# (Tab Separated Value)
You can’t perform that action at this time.
0 commit comments