icecast2/startup.sh
Knut Ahlers 1480b5faca
Switch to alpine for icecast2 server
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-21 01:46:54 +01:00

11 lines
299 B
Bash
Executable file

#!/usr/bin/dumb-init /bin/bash
set -euxo pipefail
# Copy default config to /config if not existent
if ! [ -e /config/icecast.xml ]; then
cp /etc/icecast.xml /config/icecast.xml
chown icecast /config/icecast.xml
fi
# Hand over to icecast
exec gosu icecast /usr/bin/icecast -c /config/icecast.xml