photoprism/scripts/docker/login.sh
2021-12-10 17:01:45 +01:00

7 lines
192 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -z $DOCKER_PASSWORD ]] || [[ -z $DOCKER_USERNAME ]]; then
docker login
else
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi