joshelser closed pull request #734: Make the ACCUMULO_MONITOR_BIND_ALL property
case-insensitive checking
URL: https://github.com/apache/accumulo/pull/734
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/assemble/bin/start-daemon.sh b/assemble/bin/start-daemon.sh
index 9b57e00812..d9cb69c63b 100755
--- a/assemble/bin/start-daemon.sh
+++ b/assemble/bin/start-daemon.sh
@@ -74,8 +74,13 @@ if [[ "$HOST" = "$(hostname -s)" ]]; then
fi
# ACCUMULO-1985 Allow monitor to bind on all interfaces
-if [[ ${SERVICE} == "monitor" && ${ACCUMULO_MONITOR_BIND_ALL} == "true" ]];
then
- ADDRESS="0.0.0.0"
+if [[ ${SERVICE} == "monitor" ]]; then
+ # Check for "true" case-insensitively
+ shopt -s nocasematch
+ if [[ ${ACCUMULO_MONITOR_BIND_ALL} == "true" ]]; then
+ ADDRESS="0.0.0.0"
+ fi
+ shopt -u nocasematch
fi
COMMAND="${bin}/accumulo"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services