librelad e56e6918a7 refactor(network): drop dead 'migrate apps to new subnet' machinery
The migrate/ helpers were either uncallable or no-ops:

- migrateAppsToNewNetwork + updateComposeFileNetwork: never called from
  anywhere. The intended sed-on-compose subnet rewrite would also have
  fought the tag system / network_resources DB.
- checkAppNetworkCompatibility: called from updateDockerNetworkConfig as
  a gate, but never explicitly returns, so it's effectively always-true
  and both branches do the same work. Pure noise.
- getInstalledApps: only used by the above.
- updateDockerNetworkConfig: collapses to a 2-line 'CFG := docker's
  reported subnet' adoption — inlined into check_docker_network.sh as
  adoptDockerSubnet(), which is what it actually does.

The legitimate 'subnet changed, refresh apps' path is already covered by
the idempotent per-app reinstall (dockerInstallApp ... reset_network=true
→ clears DB allocations → installer re-runs → ipUpdateComposeTags picks
fresh IPs from the current CFG_NETWORK_SUBNET). Migration (infrastructure
regen) vs restore (data) stays clean: reinstall regenerates compose+IPs,
restore lays data on top. No new pathway needed.

Files dropped:
  scripts/docker/network/migrate/migrate_apps_to_new_network.sh
  scripts/docker/network/migrate/migrate_check_app_network_compatibility.sh
  scripts/docker/network/migrate/migrate_get_installed_apps.sh
  scripts/docker/network/migrate/migrate_update_compose_file_network.sh
  scripts/docker/network/migrate/migrate_update_docker_network_config.sh

Plus the now-empty migrate/ subdir; files_docker.sh regenerated to drop
the references.

Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-26 16:11:13 +01:00

61 lines
2.3 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
docker_scripts=(
"docker/app/checks/app_installed.sh"
"docker/app/checks/container_health_loop.sh"
"docker/app/checks/container_health.sh"
"docker/app/compose/down_all.sh"
"docker/app/compose/down_app.sh"
"docker/app/compose/up_all.sh"
"docker/app/compose/up_app.sh"
"docker/app/compose/up_down_app.sh"
"docker/app/docker/remove_app.sh"
"docker/app/docker/restart_app.sh"
"docker/app/docker/start_all.sh"
"docker/app/docker/start_app.sh"
"docker/app/docker/stop_all.sh"
"docker/app/docker/stop_app.sh"
"docker/app/functions/function_app_tool.sh"
"docker/app/functions/function_install_app.sh"
"docker/app/functions/function_restart_app.sh"
"docker/app/uninstall/delete_data.sh"
"docker/app/uninstall/down_remove_app.sh"
"docker/app/uninstall/remove_images.sh"
"docker/app/uninstall/uninstall_app.sh"
"docker/checks/app_health_details.sh"
"docker/checks/app_health_status.sh"
"docker/checks/running_for_user.sh"
"docker/command/docker_run_install.sh"
"docker/command/docker_run.sh"
"docker/command/run_privileged.sh"
"docker/compose/copy_build_context.sh"
"docker/compose/restart_after_update.sh"
"docker/compose/setup_compose_yml.sh"
"docker/compose/update_and_start.sh"
"docker/compose/update_compose_yml.sh"
"docker/install/rooted/rooted_docker_check.sh"
"docker/install/rooted/rooted_docker_compose.sh"
"docker/install/rooted/rooted_docker.sh"
"docker/install/rootless/rootless_docker.sh"
"docker/install/rootless/rootless_start_setup.sh"
"docker/install/rootless/rootless_uninstall.sh"
"docker/install/rootless/rootless_user.sh"
"docker/network/network_prune.sh"
"docker/network/network_randomize_subnet.sh"
"docker/network/network_setup.sh"
"docker/service/start_docker.sh"
"docker/service/stop_docker.sh"
"docker/setup_env.sh"
"docker/type_switcher/scan_container_socket.sh"
"docker/type_switcher/set_socket_permissions.sh"
"docker/type_switcher/swap_docker_type.sh"
"docker/type_switcher/switch_containers_type.sh"
"docker/update_docker_sudo_pass.sh"
"docker/update_docker_user_pass.sh"
"docker/whitelist_port_updater.sh"
)