mirror of
https://github.com/luzifer-docker/icecast2.git
synced 2024-11-09 16:30:03 +00:00
11 lines
299 B
Bash
Executable file
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
|