From c2992ebe5e3afbbbc2db2a16b7fc18c6ed0f7d5e Mon Sep 17 00:00:00 2001 From: Ben Duncan <5178243+benduncan@users.noreply.github.com> Date: Tue, 24 Mar 2026 17:09:48 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20reset-dev-env.sh=20=E2=80=94=20pass=20AD?= =?UTF-8?q?MIN=5FINIT=5FARGS=20to=20second=20admin=20init=20--force?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The second admin init --force was called without external networking flags, overwriting the pool/nat config from the first call with auto-detected NAT+DHCP defaults. --- scripts/reset-dev-env.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/reset-dev-env.sh b/scripts/reset-dev-env.sh index 1d927c25a..6efbca38f 100755 --- a/scripts/reset-dev-env.sh +++ b/scripts/reset-dev-env.sh @@ -194,9 +194,11 @@ if [ -n "$WAN_IFACE" ] && [ -n "$WAN_GW" ]; then fi ./bin/spx admin init $ADMIN_INIT_ARGS -# Re-initialize platform (generates fresh credentials, certs, config, and updates ~/.aws/credentials) +# Re-initialize with --force to regenerate credentials, certs, config, and +# update ~/.aws/credentials. Must carry the same args so external networking +# config isn't lost. echo "Re-initializing platform..." -./bin/spx admin init --force +./bin/spx admin init --force $ADMIN_INIT_ARGS # Generate SSH key if it doesn't exist if [ ! -f ~/.ssh/spinifex-key.pub ]; then