Docker: Improve entrypoint.sh scripts

This commit is contained in:
Michael Mayer 2022-02-20 12:50:37 +01:00
parent 8f424a91d5
commit eb862fb000
2 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,9 @@
DOCKER_ARCH=${DOCKER_ARCH:-arch}
DOCKER_ENV=${DOCKER_ENV:-unknown}
DOCKER_TAG=${DOCKER_TAG:-unknown}
echo "image: $DOCKER_ARCH-$DOCKER_ENV $DOCKER_TAG"
echo "image: $DOCKER_ARCH-$DOCKER_ENV (build $DOCKER_TAG)"
if [[ $(id -u) == "0" ]]; then
echo "started as root"

View File

@ -2,8 +2,9 @@
DOCKER_ARCH=${DOCKER_ARCH:-arch}
DOCKER_ENV=${DOCKER_ENV:-unknown}
DOCKER_TAG=${DOCKER_TAG:-unknown}
echo "image: $DOCKER_ARCH-$DOCKER_ENV $DOCKER_TAG"
echo "image: $DOCKER_ARCH-$DOCKER_ENV (build $DOCKER_TAG)"
if [[ $(id -u) == "0" ]]; then
echo "started as root"