Added a header comment block to all 10 scripts, placed directly after the shebang (before the existing debug/env preamble), each covering what the script does, its arguments/defaults, and any relevant environment variables. All still pass bash -n.
A few things I documented that weren't in the README:
- error.sh — an intentional-failure test script (no README entry).
- fqdn.sh — writes
$MACHINE_FQDNto/etc/machine/fqdn. - health.sh — background python3 CGI server exposing
/cgi-bin/cloud-init-statusreturningINITIALIZING/UP/ERROR,--portdefault 4242. - packages.sh — passes its arguments through to
apt install.
Also worth noting: combine.sh resolves bare script names against dirname $MACHINE_SCRIPT_URL, falling back to this repo's GitHub scripts directory — I described that in its header since it isn't obvious from the README example. Say the word if you'd like the README's script list extended to cover error.sh, fqdn.sh, health.sh, and packages.sh too.