mirror of
https://github.com/luzifer-docker/icecast2.git
synced 2024-11-14 10:42:41 +00:00
10 lines
273 B
Bash
10 lines
273 B
Bash
#!/bin/bash
|
|
|
|
# Copy default config to /config if not existent
|
|
if ! [ -e /config/icecast.xml ]; then
|
|
cp /etc/icecast2/icecast.xml /config/icecast.xml
|
|
chown icecast2 /config/icecast.xml
|
|
fi
|
|
|
|
# Hand over to icecast
|
|
sudo -u icecast2 /usr/bin/icecast2 -c /config/icecast.xml
|