If it's gluetun code, it lives with gluetun. Both functions in
scripts/config/tags/processors/tags_processor_network_mode.sh manipulate gluetun
markers / gluetun's compose, so move them into containers/gluetun/scripts/
gluetun_network.sh and rename to the per-app-hook convention:
tagsProcessorNetworkMode -> appNetworkApplyMode_gluetun
tagsProcessorGluetunForwardedPorts -> appNetworkRegisterPorts_gluetun
Central call sites are now provider-agnostic — no "gluetun" literal anywhere:
- docker_config_setup_data.sh: an app routing via CFG_<APP>_NETWORK=<provider>
triggers `appNetworkApplyMode_<provider>` + `appNetworkRegisterPorts_<provider>`
via declare -F, so any future gateway provider plugs in with no engine edits.
- uninstall_app.sh: loops every `appNetworkRegisterPorts_*` hook (each self-skips
when its provider isn't installed), so removing a routed app refreshes the
right provider with no provider name in central code.
Delete tags_processor_network_mode.sh; regenerate arrays. Verified with stubs:
default mode no-ops, gluetun-routed app fires both hooks, gluetun itself is
skipped, unknown provider is silently no-op, uninstall loop calls registerPorts.
Drive-by cleanup: 9 stale "${X_scripts[@]}" array references in app_files.sh /
cli_files.sh (gluetun + headscale from this session's moves, plus 7 pre-existing:
command/ssl/swapfile/ufw/ufwd/user — all from older refactors that left them
behind). Each expanded to nothing at runtime (harmless), but they're dead
misleading refs. Cleaned both files; every remaining array ref now points to a
real files_*.sh.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
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/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_standard_replacements.sh"
|
|
"config/tags/processors/tags_processor_traefik_control.sh"
|
|
"config/tags/processors/tags_processor_trusted_domains.sh"
|
|
"config/utils/update_whitelist.sh"
|
|
|
|
)
|