Skip to content

Commit d174600

Browse files
committed
Add exit on error in solr entrypoint
Fixed #30
1 parent 74ff486 commit d174600

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/solr/entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
set -o pipefail # trace ERR through pipes
4+
set -o errtrace # trace ERR through 'time command' and other functions
5+
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
6+
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
37

48
###################
59
# Move storage to storage container
@@ -27,4 +31,4 @@ if [ "$1" = 'solr' ]; then
2731
exec java -jar start.jar
2832
fi
2933

30-
exec "$@"
34+
exec "$@"

0 commit comments

Comments
 (0)