File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,13 @@ Usage()
107
107
echo " "
108
108
echo " Usage: ${progname} <bootstrap|deploy|derby|update|updateQuietly|usage|help>"
109
109
echo " ${progname} index [<directory>]"
110
- echo " ${progname} indexpart <src_root> <directory1> [ ..]"
110
+ echo " ${progname} indexpart <directory_1> [<directory_2> ..]"
111
111
echo " ${progname} clearHistory <src_root> <repository_name>"
112
112
echo " "
113
+ echo " The \" indexpart\" assumes that it will be run with configuration"
114
+ echo " pointed to via the OPENGROK_READ_XML_CONFIGURATION environment"
115
+ echo " variable."
116
+ echo " "
113
117
echo " Optional environment variables:"
114
118
echo " OPENGROK_CONFIGURATION - location of your configuration"
115
119
echo " e.g. $ OPENGROK_CONFIGURATION=/var/opengrok/myog.conf ${0} ... "
@@ -1053,12 +1057,14 @@ case "${1}" in
1053
1057
;;
1054
1058
1055
1059
indexpart)
1056
- if [ $# -ne 3 ]
1060
+ if [ $# -ne 2 ]
1057
1061
then
1058
1062
Usage
1059
1063
fi
1060
- SRC_ROOT=" ${2} "
1061
- shift 2
1064
+ shift
1065
+ if [ -z " $OPENGROK_READ_XML_CONFIGURATION " ]; then
1066
+ FatalError " need configuration via OPENGROK_READ_XML_CONFIGURATION"
1067
+ fi
1062
1068
ValidateConfiguration
1063
1069
CreateRuntimeRequirements
1064
1070
UpdateDataPartial $@
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ It basically works like this:
350
350
2. index the project. It will become searchable after that.
351
351
352
352
OPENGROK_READ_XML_CONFIGURATION=/var/opengrok/etc/configuration.xml \
353
- OpenGrok indexpart /var/opengrok/src / foo
353
+ OpenGrok indexpart /foo
354
354
355
355
3. make the project "indexed" status of the project persistent so that if
356
356
webapp is redeployed the project will be still visible:
You can’t perform that action at this time.
0 commit comments