fix: updating script

This commit is contained in:
Aditya
2023-10-19 20:59:43 +05:30
parent 2e497e3508
commit d56e476ab3
+3 -9
View File
@@ -1,16 +1,10 @@
#!/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}')
if [ "$is_minikube" == "yes" ]; then
node_ip=$(minikube ip)
else
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
read -p "Enter your node public IP (default is $default_ip): " custom_ip
# Use localhost as the default value
node_ip=${custom_ip:-$default_ip}
echo "Using node IP: $node_ip to generate SSL certs!"