Skip to content

Commit a307a3b

Browse files
committed
fix a configuration bug on index.sh
1 parent 7f1c173 commit a307a3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /opengrok-source
55

66
RUN apt-get update && apt-get install -y python3 python3-venv
77
RUN mvn -f pom.xml clean package -DskipTests=true
8-
8+
# find most recent package file
99
RUN cp `ls -t distribution/target/*.tar.gz | head -n1 |awk '{printf("%s",$0)}'` /opengrok.tar.gz
1010

1111
FROM tomcat:9-jre8

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+
# $OPTS an be overwriteb by environment variable
56
OPS=${INDEXER_FLAGS:='-H -P -S -G'}
67

78
if [ -f "$LOCKFILE" ]; then
@@ -25,7 +26,7 @@ opengrok-indexer \
2526
--leadingWildCards on \
2627
-W /var/opengrok/etc/configuration.xml \
2728
-U "$URI" \
28-
$INDEXER_FLAGS \
29+
$OPS \
2930
$INDEXER_OPT "$@"
3031
date +"%F %T Indexing finished"
3132

0 commit comments

Comments
 (0)