1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 23:38:06 +02:00

Move exports closer to compose invocaton

This commit is contained in:
Shane Kilkelly 2020-06-11 11:20:55 +01:00
parent 0d911433ba
commit 34e225d89b

View file

@ -29,14 +29,6 @@ function __main__() {
echo "<<<<<<<<<<<<"
fi
export RC_IMAGE
export RC_SHARELATEX_DATA_PATH
export RC_DOCKER_SOCKET_PATH
export RC_MONGO_IMAGE
export RC_MONGO_DATA_PATH
export RC_REDIS_IMAGE
export RC_REDIS_DATA_PATH
compose_file_flags=("-f config/compose/docker-compose.base.yml")
if [[ "$RC_REDIS_ENABLED" == "true" ]]; then
compose_file_flags+=("-f config/compose/docker-compose.redis.yml")
@ -57,6 +49,14 @@ function __main__() {
exit
export RC_IMAGE
export RC_SHARELATEX_DATA_PATH
export RC_DOCKER_SOCKET_PATH
export RC_MONGO_IMAGE
export RC_MONGO_DATA_PATH
export RC_REDIS_IMAGE
export RC_REDIS_DATA_PATH
exec "$compose_invocation"
}