fix: reset-dev-env.sh — pass ADMIN_INIT_ARGS to second admin init --force

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.
This commit is contained in:
Ben Duncan
2026-03-24 17:09:48 +10:00
parent ffca7330c5
commit c2992ebe5e
+4 -2
View File
@@ -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