cmd/satellite: Enable admin service like other services, also sort environment variables (#3874)

Change-Id: I67592b7bf34a0e2ce9a445b58b7fa34396aa8c5d

Co-authored-by: Stefan Benten <mail@stefan-benten.de>
This commit is contained in:
Matt Robinson 2020-05-08 07:38:21 -04:00 committed by GitHub
parent a549d523dc
commit 94503db5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,20 +25,24 @@ fi
RUN_PARAMS="${RUN_PARAMS:-} --config-dir ${CONF_PATH}"
if [ "${SATELLITE_MIGRATE:-}" = "true" ]; then
exec ./satellite run migration $RUN_PARAMS "$@"
if [ "${SATELLITE_ADMIN:-}" = "true" ]; then
exec ./satellite run admin $RUN_PARAMS "$@"
fi
if [ "${SATELLITE_API:-}" = "true" ]; then
exec ./satellite run api $RUN_PARAMS "$@"
fi
if [ "${SATELLITE_REPAIR:-}" = "true" ]; then
exec ./satellite run repair $RUN_PARAMS "$@"
fi
if [ "${SATELLITE_GC:-}" = "true" ]; then
exec ./satellite run garbage-collection $RUN_PARAMS "$@"
fi
if [ "${SATELLITE_MIGRATE:-}" = "true" ]; then
exec ./satellite run migration $RUN_PARAMS "$@"
fi
if [ "${SATELLITE_REPAIR:-}" = "true" ]; then
exec ./satellite run repair $RUN_PARAMS "$@"
fi
exec ./satellite run $RUN_PARAMS "$@"