fix: updating script
This commit is contained in:
@@ -1,16 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
read -p "Are you using Minikube? (yes/no): " is_minikube
|
|
||||||
|
|
||||||
default_ip=$(ifconfig | grep 'inet ' | grep -v 127.0.0.1 | awk '{print $2}')
|
default_ip=$(ifconfig | grep 'inet ' | grep -v 127.0.0.1 | awk '{print $2}')
|
||||||
|
|
||||||
if [ "$is_minikube" == "yes" ]; then
|
read -p "Enter your node public IP (default is $default_ip): " custom_ip
|
||||||
node_ip=$(minikube ip)
|
# Use localhost as the default value
|
||||||
else
|
node_ip=${custom_ip:-$default_ip}
|
||||||
read -p "Enter your node IP (default is $default_ip): " custom_ip
|
|
||||||
# Use localhost as the default value
|
|
||||||
node_ip=${custom_ip:-$default_ip}
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Using node IP: $node_ip to generate SSL certs!"
|
echo "Using node IP: $node_ip to generate SSL certs!"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user