mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-03 23:45:59 +00:00
5432839e5a
- 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.