An app's deployed config is written once, on first install, and never touched again — dockerConfigSetupToContainer copies only when the file is absent, precisely so an update can never overwrite values someone has edited. Right default, unchosen consequence: an app that gains a CFG_ option in a new release has it on every fresh install and on no existing one. The failure is silent, which is the worst part. Nothing errors. The key reads as empty and whatever depends on it quietly does something else. Two halves, because there were two gaps. Per-app, when a config is set up, options present in the template and missing from the deployed file are appended with their comment blocks — the comment is the only explanation of a new option that exists, and a bare key at the end of a documented file is not actionable. And a sweep across every installed app after an update, because an update redeploys LibrePortal itself and nothing else, so without it a new option would reach an app only when someone next reinstalled it — which, for an app that is working, may be never. Existing values are never touched, and keys the deployed file has but the template no longer does are left alone: a removed option is usually a rename, and deleting someone's value is not recoverable. Deliberately not a regenerate-from-template, which would place new keys in their proper section and refresh the docs, but would put a whole-file rewrite of every app config in the path of every app action — appending cannot lose a line. Backfilled RANDOMIZED* defaults are generated in both paths. A placeholder left in place would otherwise be a credential identical on every install that took the upgrade. The sweep is driven from the template directory, not the container one: under rootless the container tree is drwxr-x--x and owned by the docker user, so the manager can traverse it but not list it, and a glob there expands to nothing — the sweep would report success having examined no apps. Run against this install it found real drift beyond the test fixtures: mattermost was missing CFG_MATTERMOST_ADMIN_PASSWORD, whose own comment notes that without it the password-reset tool has nothing to write to, and speedtest was missing its password key entirely. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
56 lines
2.5 KiB
Bash
Executable File
56 lines
2.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This file is auto-generated by generate_arrays.sh
|
|
# Do not edit manually - run './scripts/source/files/generate_arrays.sh run' to regenerate
|
|
|
|
config_scripts=(
|
|
"config/application/application_edit_config.sh"
|
|
"config/application/application_menu_apps.sh"
|
|
"config/application/application_menu_category.sh"
|
|
"config/application/application_missing_variables.sh"
|
|
"config/config_update.sh"
|
|
"config/core/config_check_missing.sh"
|
|
"config/core/config_file_setup_data.sh"
|
|
"config/core/config_find_file.sh"
|
|
"config/core/config_get_config_data.sh"
|
|
"config/core/config_main_menu.sh"
|
|
"config/core/config_manage_menu.sh"
|
|
"config/core/config_update_option.sh"
|
|
"config/core/variables/config_missing_variables.sh"
|
|
"config/core/variables/config_scan_variables.sh"
|
|
"config/docker/config_backfill_keys.sh"
|
|
"config/docker/docker_compose_menu.sh"
|
|
"config/docker/docker_config_setup_data.sh"
|
|
"config/docker/docker_config_to_container.sh"
|
|
"config/docker/docker_list_compose_files.sh"
|
|
"config/password/bcrypt/password_export_bcrypt.sh"
|
|
"config/password/bcrypt/password_process_bcrypt.sh"
|
|
"config/password/bcrypt/password_replace_bcrypt.sh"
|
|
"config/password/bcrypt/password_retreive_bcrypt.sh"
|
|
"config/password/password_generate.sh"
|
|
"config/password/password_hash.sh"
|
|
"config/password/password_replace_appkey.sh"
|
|
"config/password/password_replace hex.sh"
|
|
"config/password/password_replace.sh"
|
|
"config/password/password_replace vapid.sh"
|
|
"config/password/password_scan_file.sh"
|
|
"config/password/password_update_all.sh"
|
|
"config/password/password_user_generator.sh"
|
|
"config/password/password_user_replace.sh"
|
|
"config/tags/manager/tags_manager_content.sh"
|
|
"config/tags/manager/tags_manager_state.sh"
|
|
"config/tags/manager/tags_manager_update.sh"
|
|
"config/tags/processors/tags_processor_app_config_values.sh"
|
|
"config/tags/processors/tags_processor_app_url.sh"
|
|
"config/tags/processors/tags_processor_docker_installation.sh"
|
|
"config/tags/processors/tags_processor_healthcheck.sh"
|
|
"config/tags/processors/tags_processor_password_generation.sh"
|
|
"config/tags/processors/tags_processor_random_user.sh"
|
|
"config/tags/processors/tags_processor_socket_configuration.sh"
|
|
"config/tags/processors/tags_processor_speedtest_pass.sh"
|
|
"config/tags/processors/tags_processor_traefik_control.sh"
|
|
"config/tags/processors/tags_processor_trusted_domains.sh"
|
|
"config/utils/update_whitelist.sh"
|
|
|
|
)
|