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>
28 lines
666 B
Bash
Executable File
28 lines
666 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Used for the full LibrePortal application
|
|
files_libreportal_app=(
|
|
"${app_scripts[@]}"
|
|
"${backup_scripts[@]}"
|
|
"${checks_scripts[@]}"
|
|
"${cli_scripts[@]}"
|
|
"${config_scripts[@]}"
|
|
"${crontab_scripts[@]}"
|
|
"${database_scripts[@]}"
|
|
"${docker_scripts[@]}"
|
|
"${function_scripts[@]}"
|
|
"${install_scripts[@]}"
|
|
"${logs_scripts[@]}"
|
|
"${menu_scripts[@]}"
|
|
"${migrate_scripts[@]}"
|
|
"${network_scripts[@]}"
|
|
"${os_scripts[@]}"
|
|
"${restore_scripts[@]}"
|
|
"${setup_scripts[@]}"
|
|
"${source_scripts[@]}"
|
|
"${ssh_scripts[@]}"
|
|
"${start_scripts[@]}"
|
|
"${update_scripts[@]}"
|
|
"${webui_scripts[@]}"
|
|
)
|