Set some icecast parameters
This commit is contained in:
parent
c0e6b42e03
commit
606cbbf7f5
|
@ -43,6 +43,7 @@ ICECAST_PLAYLIST_FILE=/etc/ices2/playlist.txt
|
|||
ICECAST_LOGIN_TEXT=$"Icecast login"
|
||||
|
||||
icecast_variables=(MY_USERNAME
|
||||
MY_EMAIL_ADDRESS
|
||||
ONION_ONLY
|
||||
ICECAST_DOMAIN_NAME
|
||||
ICECAST_CODE
|
||||
|
@ -468,6 +469,9 @@ function install_icecast {
|
|||
/etc/icecast2/icecast.xml
|
||||
|
||||
sed -i "s|<port>.*|<port>$ICECAST_PORT</port>|g" /etc/icecast2/icecast.xml
|
||||
sed -i "s|<admin-user>.*|<admin-user>$MY_USERNAME</admin-user>|g" /etc/icecast2/icecast.xml
|
||||
sed -i "s|<admin>.*|<admin>$MY_EMAIL_ADDRESS</admin>|g" /etc/icecast2/icecast.xml
|
||||
sed -i "s|<location>.*|<location>The Interwebs</location>|g" /etc/icecast2/icecast.xml
|
||||
|
||||
if [ ! -d /var/www/icecast/htdocs ]; then
|
||||
mkdir -p /var/www/icecast/htdocs
|
||||
|
|
Loading…
Reference in New Issue