Script fixes.

This commit is contained in:
2025-10-04 08:28:01 -07:00
parent 482cebc603
commit 748ae1a70b
6 changed files with 17 additions and 126 deletions

View File

@@ -32,13 +32,17 @@ else
init_wild_env
fi
# ---
# Config
prompt_if_unset_config "cloud.dns.ip" "The IP address of your wild cloud DNS server" ""
prompt_if_unset_config "cloud.dnsmasq.interface" "The network interface for your wild cloud DNS server" "eth0"
prompt_if_unset_config "cluster.loadBalancerIp" "The IP address for your cluster load balancer" ""
prompt_if_unset_config "cloud.router.ip" "The IP address for your LAN router" "192.168.8.1"
prompt_if_unset_config "cloud.dhcpRange" "The DHCP range for your wild cloud network" ""
SOURCE_DIR="${WC_ROOT}/setup/dnsmasq"
DNSMASQ_SETUP_DIR="${WC_HOME}/setup/dnsmasq"
BUNDLE_DIR="${DNSMASQ_SETUP_DIR}/setup-bundle"
mkdir -p "${BUNDLE_DIR}"
# Create local templates.
@@ -58,6 +62,7 @@ if [ -d "${DNSMASQ_SETUP_DIR}" ]; then
echo "Successfully created dnsmasq setup files from templates."
fi
else
mkdir -p "${BUNDLE_DIR}"
cp -r "${SOURCE_DIR}" "${DNSMASQ_SETUP_DIR}"
find "${DNSMASQ_SETUP_DIR}" -type f \( -name "*.yaml" -o -name "*.ipxe" -o -name "*.conf" \) | while read -r file; do
echo "Processing: ${file}"
@@ -65,6 +70,7 @@ else
done
echo "Successfully created dnsmasq setup files from templates."
fi
mkdir -p "${BUNDLE_DIR}"
# Create setup bundle.