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

@@ -102,14 +102,15 @@ prompt_if_unset_config "cloud.internalDomain" "Your internal cloud domain" "inte
prompt_if_unset_config "cloud.backup.root" "Existing path to save backups to" ""
# Derive cluster name from domain if not already set
current_cluster_name=$(wild-config "cluster.name")
if [ -z "$current_cluster_name" ] || [ "$current_cluster_name" = "null" ]; then
if wild-config "cluster.name" --check; then
echo "Cluster name: $(wild-config "cluster.name")"
else
echo "Cluster name is already set to: $(wild-config "cluster.name")"
cluster_name=$(echo "${domain}" | tr '.' '-' | tr '[:upper:]' '[:lower:]')
wild-config-set "cluster.name" "${cluster_name}"
print_info "Set cluster name to: ${cluster_name}"
fi
# =============================================================================
# COPY SCAFFOLD
# =============================================================================