#!/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"