Files
ProxmoxVE/misc
MickLesk 5432839e5a build.func(post-install-hook): add advanced-settings step, validation, logging & whiptail error feedback
- New step 28 in advanced_settings(): inputbox for the optional host-side
  post-install script path. Validates: must be absolute, no shell
  metacharacters; warns (yes/no) if file does not yet exist on host.
- Verbose+Confirm becomes step 29; confirm summary now includes a
  warning that the hook runs as root on the Proxmox HOST, not in the LXC.
- Execution block:
  * Captures hook stdout/stderr to /var/log/community-scripts/post-install-<CTID>.log
  * Uses explicit $? capture (was relying on $? after if-test).
  * On failure or missing file: shows whiptail msgbox so the user
    cannot miss it scrolling past the post-create output.
  * Tails the last 15 log lines into the failure popup.
2026-05-03 21:06:33 +02:00
..