Force NODE_TYPE to 'node' in update mode to complete bootstrap migration

- Remove logic that detects existing bootstrap.yaml and sets NODE_TYPE to 'bootstrap'
- Always use NODE_TYPE='node' in update mode for consistent terminology
- This ensures all services, configs, and outputs use 'node' terminology
- Completes the full migration from bootstrap to node naming convention
- Existing bootstrap installations will be updated to use node terminology
This commit is contained in:
johnysigma 2025-08-04 16:58:07 +03:00
parent 4f204a37f4
commit d447f6546b

View File

@ -791,16 +791,9 @@ main() {
configuration_wizard
else
log "Update mode: skipping configuration wizard"
# Detect existing node type
if [ -f "$INSTALL_DIR/configs/bootstrap.yaml" ]; then
NODE_TYPE="bootstrap"
elif [ -f "$INSTALL_DIR/configs/node.yaml" ]; then
# Force node type to 'node' for consistent terminology
NODE_TYPE="node"
else
error "Cannot determine existing node type"
exit 1
fi
log "Detected existing node type: $NODE_TYPE"
log "Using node type: $NODE_TYPE (standardized from any previous bootstrap configuration)"
fi
setup_directories