From 6a4efb959c70201e1c100be665966d22869bd989 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 29 Nov 2023 02:52:08 -0600 Subject: [PATCH] add missing IP_PUBLIC variable --- opensearch-1.x-node-installer.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensearch-1.x-node-installer.sh b/opensearch-1.x-node-installer.sh index 6085516..895cb6f 100644 --- a/opensearch-1.x-node-installer.sh +++ b/opensearch-1.x-node-installer.sh @@ -21,9 +21,11 @@ MEM_AVAILABLE="$(grep MemTotal /proc/meminfo| grep -o '[0-9]\+')" OPNSDIR="/opt/opensearch" INDEX_USER="$(tr -dc '[:lower:]' < /dev/urandom | fold -w 24 | head -n1)" OPNSREST="$(tr -dc "a-zA-Z0-9" < /dev/urandom | fold -w 32 | head -n1)" +PUBLIC_IP="$(dig -4 +short myip.opendns.com @resolver1.opendns.com)" opens_fts="opensearchproject/opensearch" fts_node="fts_os-node" max_map_count="512000" +NL="$(printf '\n ')" printwc() { printf "%b$2%b" "$1" "${Color_Off}"