mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-15 14:33:01 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user