add missing IP_PUBLIC variable

This commit is contained in:
Luis Guzmán 2023-11-29 02:52:08 -06:00
parent 71192f8732
commit 6a4efb959c
1 changed files with 2 additions and 0 deletions

View File

@ -21,9 +21,11 @@ MEM_AVAILABLE="$(grep MemTotal /proc/meminfo| grep -o '[0-9]\+')"
OPNSDIR="/opt/opensearch" OPNSDIR="/opt/opensearch"
INDEX_USER="$(tr -dc '[:lower:]' < /dev/urandom | fold -w 24 | head -n1)" 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)" 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" opens_fts="opensearchproject/opensearch"
fts_node="fts_os-node" fts_node="fts_os-node"
max_map_count="512000" max_map_count="512000"
NL="$(printf '\n ')"
printwc() { printwc() {
printf "%b$2%b" "$1" "${Color_Off}" printf "%b$2%b" "$1" "${Color_Off}"