Standard env init.

This commit is contained in:
2025-06-30 09:16:21 -07:00
parent 8f513235e2
commit 58097f7831
36 changed files with 294 additions and 327 deletions

View File

@@ -3,12 +3,6 @@
set -e
set -o pipefail
# Source common utilities
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/wild-common.sh"
# Initialize Wild-Cloud environment
init_wild_env
# Usage function
usage() {
echo "Usage: wild-cluster-node-machine-config-generate <node-ip>"
@@ -72,7 +66,14 @@ if [ -z "$NODE_IP" ]; then
exit 1
fi
check_wild_directory
# Initialize Wild-Cloud environment
if [ -z "${WC_ROOT}" ]; then
print "WC_ROOT is not set."
exit 1
else
source "${WC_ROOT}/scripts/common.sh"
init_wild_env
fi
# Check required configuration
if [ -z "$(get_current_config "cluster.name")" ]; then