Fix proxy install summary and allowed_nodes cleanup

This commit is contained in:
rcourtman 2025-11-17 14:38:01 +00:00
parent a46ca5052b
commit f0f44231a1
2 changed files with 6 additions and 3 deletions

View file

@ -1702,12 +1702,15 @@ fi'; then
echo
echo " 2. Re-run the Pulse installer and skip temperature monitoring when prompted"
echo
write_install_summary
exit 1
fi
rm -f "$proxy_script"
fi
fi
write_install_summary
# Clean final output
echo
print_success "Pulse installation complete!"
@ -3002,8 +3005,6 @@ print_completion() {
fi
fi
write_install_summary
echo
}

View file

@ -93,7 +93,7 @@ ensure_allowed_nodes_file_reference() {
remove_allowed_nodes_block() {
if ! command -v python3 >/dev/null 2>&1; then
sed -i '/allowed_nodes:/d' "$CONFIG_FILE" 2>/dev/null || true
sed -i '/^allowed_nodes:/,/^[^[:space:]]/d' "$CONFIG_FILE" 2>/dev/null || true
return
fi
python3 - "$CONFIG_FILE" <<'PY'
@ -137,6 +137,8 @@ while i < len(lines):
flush_pending()
path.write_text('\n'.join(out) + ('\n' if out else ''))
PY
# Fallback cleanup in case formatting prevented python script from matching
sed -i '/^allowed_nodes:/,/^[^[:space:]]/d' "$CONFIG_FILE" 2>/dev/null || true
}
update_allowed_nodes() {