feat(build): add mode=generated for unattended frontend installs

Adds a 'generated' case to install_script() in build.func.
When mode=generated is set, the script runs with default settings
in unattended mode and reports METHOD=generated to telemetry.
This allows the frontend generator to trigger installs without
interactive prompts while being distinguishable in analytics.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-12 11:04:10 +01:00
parent 4189137f55
commit d9f88cb032

View File

@@ -3063,6 +3063,15 @@ install_script() {
header_info
CHOICE=""
;;
generated | GENERATED)
header_info
echo -e "${DEFAULT}${BOLD}${BL}Using Generated Settings on node $PVEHOST_NAME${CL}"
VERBOSE="no"
METHOD="generated"
base_settings "$VERBOSE"
echo_default
break
;;
*)
msg_error "Invalid option: $CHOICE"
exit 112