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