docker-icecast2/run
2024-05-23 21:19:51 -03:00

9 lines
280 B
Bash

#!/bin/bash
set -e
configfile=/opt/icecast-server/config/icecast.xml
if [ ! -f "$configfile" ]; then
echo "arquivo $configfile não existe, criando config padrão"
cp -v /opt/icecast-server/etc/icecast.xml "$configfile"
fi
/opt/icecast-server/bin/icecast -c "$configfile"