forked from mtusi2026/mtusi2026lab4
ЛР4: не переносить env клона при восстановлении основного стенда
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user