mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user