Skip to content

Commit 7f1c173

Browse files
committed
make indexer flags configurable
1 parent a8c364d commit 7f1c173

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/index.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
LOCKFILE=/var/run/opengrok-indexer
44
URI="http://localhost:8080"
5+
OPS=${INDEXER_FLAGS:='-H -P -S -G'}
56

67
if [ -f "$LOCKFILE" ]; then
78
date +"%F %T Indexer still locked, skipping indexing"
@@ -21,10 +22,10 @@ opengrok-indexer \
2122
-a /opengrok/lib/opengrok.jar -- \
2223
-s /opengrok/src \
2324
-d /opengrok/data \
24-
-H -P -S -G \
2525
--leadingWildCards on \
2626
-W /var/opengrok/etc/configuration.xml \
2727
-U "$URI" \
28+
$INDEXER_FLAGS \
2829
$INDEXER_OPT "$@"
2930
date +"%F %T Indexing finished"
3031

0 commit comments

Comments
 (0)