diff --git a/README.md b/README.md index 83e045d..0c0b4d7 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ Supported ENV variables: ICECAST_SOURCE_PASSWORD, ICECAST_ADMIN_PASSWORD, ICECAST_RELAY_PASSWORD ICECAST_ADMIN_USERNAME, ICECAST_ADMIN_EMAIL ICECAST_LOCATION, ICECAST_HOSTNAME -ICECAST_MAX_CLIENTS, ICECAST_MAX_SOURCES +ICECAST_MAX_CLIENTS, ICECAST_MAX_SOURCES, ICECAST_EXTRA_PARAMETERS ``` diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2409502..7756ae1 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -28,4 +28,9 @@ if [ -n "$ICECAST_MAX_SOURCES" ]; then sed -i "s/[^<]*<\/sources>/$ICECAST_MAX_SOURCES<\/sources>/g" /etc/icecast.xml fi +if [ -n "$ICECAST_EXTRA_PARAMETERS" ]; then + sed -i "s/<\/icecast>//" /etc/icecast.xml + + echo "$ICECAST_EXTRA_PARAMETERS" >> /etc/icecast.xml +fi exec "$@"