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"