checkSuccess silently reported '✓ Success' for failed commands, which is how the de-sudo write gaps (throttle stamp, passwords, updater) hid. Rework it: - Capture the real exit code up front; success path unchanged. - On failure, ALWAYS append to a greppable $logs_dir/error_report.log tagged with the caller's script:line + exit code — a failure can't hide behind a green check anymore. - New CFG_REQUIREMENT_CONTINUE_ON_ERROR (default true): log + continue so one failure doesn't abort the run and we surface EVERY issue in a single pass. Flip it off later for strict abort/prompt (the prior behaviour, preserved). Documents the 'local VAR=$(cmd); checkSuccess' footgun (local resets $?), which the next commit fixes across the tree. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
19 lines
2.3 KiB
Plaintext
Executable File
19 lines
2.3 KiB
Plaintext
Executable File
# ================================================================================
|
|
# Terminal - System utilities and advanced settings **ADVANCED**
|
|
# ================================================================================
|
|
CFG_UPDATER_CHECK=60 # Update Check Interval - Hours between system update checks
|
|
CFG_SWAPFILE_SIZE=2G # Swap File Size - Size of swap file for memory management
|
|
CFG_GENERATED_PASS_LENGTH=14 # Password Length - Length for auto generated passwords
|
|
CFG_GENERATED_USER_LENGTH=8 # Username Length - Length for auto generated usernames
|
|
CFG_UFW_LOGGING=off # Firewall Logging - UFW firewall logging level [off|low|medium|high|full]
|
|
CFG_TEXT_EDITOR=nano # Text Editor - Default text editor for system operations [nano|vim]
|
|
CFG_REQUIREMENT_CRONTAB=true # Scheduled Tasks - Install scheduled tasks and automated maintenance jobs
|
|
CFG_REQUIREMENT_CONFIGS_CHECK=true # Config Validation - Validate configuration files on startup for errors and consistency
|
|
CFG_REQUIREMENT_CONFIGS_AUTO_UPDATE=true # Auto Config Updates - Add new config options from the template (non-interactive)
|
|
CFG_REQUIREMENT_CONFIGS_AUTO_DELETE=true # Auto Config Deletes - Remove config options no longer present in the template
|
|
CFG_REQUIREMENT_MISSING_IPS=false # IP Configuration Check - Check for and alert about missing IP configurations
|
|
CFG_REQUIREMENT_CONTINUE_PROMPT=false # Continue Prompts - Show continue prompts during installation for user confirmation
|
|
CFG_REQUIREMENT_CONTINUE_ON_ERROR=true # Continue On Error - Log failures to error_report.log and continue instead of aborting (on by default to surface issues; turn off for strict abort once clean)
|
|
CFG_REQUIREMENT_SUGGEST_INSTALLS=false # Install Suggestions - Enable application suggestions and recommendations during installation
|
|
CFG_REQUIREMENT_SUGGEST_METRICS=true # Metrics Suggestions - Offer Prometheus and Grafana during first install (requires Install Suggestions enabled)
|