From 6046507f5a230c391b0a859f146b575ebbca1461 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 29 Nov 2023 03:50:31 -0600 Subject: [PATCH] update create_certs function --- opensearch-1.x-node-installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opensearch-1.x-node-installer.sh b/opensearch-1.x-node-installer.sh index 53d9bf6..1b54a77 100644 --- a/opensearch-1.x-node-installer.sh +++ b/opensearch-1.x-node-installer.sh @@ -62,8 +62,10 @@ dig_dns_ip() { dig -4 +short "$1"||awk -v RS='([0-9]+\\.){3}[0-9]+' 'RT{print RT}' } create_certs(){ - sed -i "s|__FTSDOMAIN__|$1|" static/opensearch_certs.sh - bash static/opensearch_certs.sh + cp static/opensearch_certs.sh "$OPNSDIR" + sed -i "s|__FTSDOMAIN__|$1|" "$OPNSDIR"/opensearch_certs.sh + cp "$OPNSDIR" + bash opensearch_certs.sh } countdown() { printwc "$Cyan" "$1"