Fix proxy install summary and allowed_nodes cleanup
This commit is contained in:
parent
a46ca5052b
commit
f0f44231a1
2 changed files with 6 additions and 3 deletions
|
|
@ -1702,12 +1702,15 @@ fi'; then
|
||||||
echo
|
echo
|
||||||
echo " 2. Re-run the Pulse installer and skip temperature monitoring when prompted"
|
echo " 2. Re-run the Pulse installer and skip temperature monitoring when prompted"
|
||||||
echo
|
echo
|
||||||
|
write_install_summary
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -f "$proxy_script"
|
rm -f "$proxy_script"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
write_install_summary
|
||||||
|
|
||||||
# Clean final output
|
# Clean final output
|
||||||
echo
|
echo
|
||||||
print_success "Pulse installation complete!"
|
print_success "Pulse installation complete!"
|
||||||
|
|
@ -3002,8 +3005,6 @@ print_completion() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
write_install_summary
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ ensure_allowed_nodes_file_reference() {
|
||||||
|
|
||||||
remove_allowed_nodes_block() {
|
remove_allowed_nodes_block() {
|
||||||
if ! command -v python3 >/dev/null 2>&1; then
|
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
|
return
|
||||||
fi
|
fi
|
||||||
python3 - "$CONFIG_FILE" <<'PY'
|
python3 - "$CONFIG_FILE" <<'PY'
|
||||||
|
|
@ -137,6 +137,8 @@ while i < len(lines):
|
||||||
flush_pending()
|
flush_pending()
|
||||||
path.write_text('\n'.join(out) + ('\n' if out else ''))
|
path.write_text('\n'.join(out) + ('\n' if out else ''))
|
||||||
PY
|
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() {
|
update_allowed_nodes() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue