Script fixes.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user