Files
wirecon/lxc/var
d4nn13andClaude Opus 4.7 b27ca6b989 rewrite CGI scripts in POSIX sh
Busybox httpd runs CGI under ash regardless of #!/bin/bash, so bash-only
constructs — arrays (restart=()), [[ ]], =~, <<< — all broke at runtime
with "syntax error: unexpected (" / "unexpected redirection" messages
visible in the httpd log.

Switched all four CGIs (status, config-get, config-save, logs) to
#!/bin/sh with POSIX-only constructs: space-separated strings instead of
arrays, [ ] instead of [[ ]], parameter expansion + awk instead of =~
regex, printf '%s\n' … | awk instead of herestrings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 19:56:34 +02:00
..