Fix UI networking across gateway recreation

This commit is contained in:
Mikei386
2026-09-08 15:56:12 +02:00
parent 5e18b7776b
commit eeebbd06eb
8 changed files with 40 additions and 38 deletions
-14
View File
@@ -51,24 +51,10 @@ case "$command" in
shift
[[ $# -eq 0 ]] || { echo "core akzeptiert keine weiteren Services" >&2; exit 2; }
run "$ROOT_DIR/platform/mcp/install-tools.sh"
# Release the old gateway namespace (and its fixed network addresses)
# before replacing its owner. Otherwise Docker can strand the host with
# the old namespace still held by these two consumers.
run "${compose[@]}" stop llama-dashboard portainer
run "${compose[@]}" up -d --build \
wireguard-gateway piper xtts tts-gateway profile-controller router llama-dashboard portainer backup
else
rebind_gateway=false
for service in "$@"; do
[[ $service == wireguard-gateway ]] && rebind_gateway=true
done
if [[ $rebind_gateway == true ]]; then
run "${compose[@]}" stop llama-dashboard portainer
fi
run "${compose[@]}" up -d --build --no-deps "$@"
if [[ $rebind_gateway == true ]]; then
run "${compose[@]}" up -d --no-deps --force-recreate llama-dashboard portainer
fi
fi
;;
purge-legacy)