enable icecast service during install

fixes #1096
This commit is contained in:
Kyle Robbertze 2020-10-26 12:06:34 +02:00
parent 2003e685b0
commit 78fdab1285
1 changed files with 1 additions and 0 deletions

View File

@ -934,6 +934,7 @@ if [ "$icecast" = "t" ]; then
icecast_unit_name="icecast"
icecast_config="/etc/icecast.xml"
fi
systemInitCommand enable ${icecast_unit_name}
# only update icecast password if
if [ ! -e "/etc/airtime/airtime.conf" ] && [ ! -e "/etc/airtime/airtime.conf.tmp" ]; then
icecast_pass=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};)