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 18
18
# Supported Environment Variables for configuring the default setup:
19
19
# - OPENGROK_DISTRIBUTION_BASE Base Directory of the OpenGrok Distribution
20
20
# - OPENGROK_INSTANCE_BASE Base Directory of the OpenGrok User Data Area
21
+ # - OPENGROK_SRC_ROOT directory with files to be indexed
21
22
# - OPENGROK_CTAGS Full path to Exuberant or Universal CTags binary
22
23
# - OPENGROK_CTAGS_OPTIONS_FILE Full path to file with extra command line
23
24
# options for CTags program (for its --options
@@ -186,7 +187,11 @@ DefaultInstanceConfiguration()
186
187
187
188
# REQUIRED: Source Code/Repository Root
188
189
# (your source code or the root of all repositories)
189
- SRC_ROOT=" ${OPENGROK_INSTANCE_BASE} /src"
190
+ if [ -n " ${OPENGROK_SRC_ROOT} " ]; then
191
+ SRC_ROOT=" ${OPENGROK_SRC_ROOT} "
192
+ else
193
+ SRC_ROOT=" ${OPENGROK_INSTANCE_BASE} /src"
194
+ fi
190
195
191
196
# REQUIRED: OpenGrok Generate Data Root
192
197
# (for Lucene index and hypertext cross-references)
You can’t perform that action at this time.
0 commit comments