update create_certs function

This commit is contained in:
Luis Guzmán 2023-11-29 03:50:31 -06:00
parent 69a3d6eb6a
commit 6046507f5a
1 changed files with 4 additions and 2 deletions

View File

@ -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"