#!/bin/sh set -eu : "${AUDIOCONTROL_USERNAME:=admin}" : "${AUDIOCONTROL_PASSWORD:=}" if [ -n "$AUDIOCONTROL_PASSWORD" ]; then htpasswd -bc /etc/nginx/.htpasswd "$AUDIOCONTROL_USERNAME" "$AUDIOCONTROL_PASSWORD" export AUDIOCONTROL_AUTH_BASIC='"Groove Audio"' else touch /etc/nginx/.htpasswd export AUDIOCONTROL_AUTH_BASIC=off fi exec /docker-entrypoint.sh "$@"