Merge pull request #1097 from paddatrapper/enable-icecast

Enable icecast service during install
This commit is contained in:
Robb 2020-11-10 15:00:30 -05:00 committed by GitHub
commit f62ed7d2e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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};)