update create_certs function
This commit is contained in:
		
							parent
							
								
									69a3d6eb6a
								
							
						
					
					
						commit
						6046507f5a
					
				| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue