diff --git a/scripts/clean-clone-check.sh b/scripts/clean-clone-check.sh index 3b56673f..21c82958 100755 --- a/scripts/clean-clone-check.sh +++ b/scripts/clean-clone-check.sh @@ -44,7 +44,13 @@ cleanup() { esac fi 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 exit "$status" }