9 lines
280 B
Bash
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"
|