ЛР4: не переносить env клона при восстановлении основного стенда

This commit is contained in:
IvanMeln1k
2026-12-04 14:41:37 +03:00
parent 31ab129e8a
commit 1360fe6843
+7 -1
View File
@@ -44,7 +44,13 @@ cleanup() {
esac esac
fi fi
if [ "$main_was_running" = "1" ]; then if [ "$main_was_running" = "1" ]; then
(cd "$root" && make up >/dev/null 2>&1 && ./scripts/wait-ready.sh >/dev/null 2>&1 || true) # The clone exported COMPOSE_PROJECT_NAME/LB_PORT/IMAGE for its own
# compose project. Do not leak them into the main stand restart.
(
cd "$root"
unset COMPOSE_PROJECT_NAME LB_PORT IMAGE BASE_URL API_IMAGE
make up >/dev/null 2>&1 && ./scripts/wait-ready.sh >/dev/null 2>&1 || true
)
fi fi
exit "$status" exit "$status"
} }