Browse Source

Set some icecast parameters

Bob Mottram 7 years ago
parent
commit
606cbbf7f5
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-app-icecast

+ 4
- 0
src/freedombone-app-icecast View File

@@ -43,6 +43,7 @@ ICECAST_PLAYLIST_FILE=/etc/ices2/playlist.txt
43 43
 ICECAST_LOGIN_TEXT=$"Icecast login"
44 44
 
45 45
 icecast_variables=(MY_USERNAME
46
+                   MY_EMAIL_ADDRESS
46 47
                    ONION_ONLY
47 48
                    ICECAST_DOMAIN_NAME
48 49
                    ICECAST_CODE
@@ -468,6 +469,9 @@ function install_icecast {
468 469
         /etc/icecast2/icecast.xml
469 470
 
470 471
     sed -i "s|<port>.*|<port>$ICECAST_PORT</port>|g" /etc/icecast2/icecast.xml
472
+    sed -i "s|<admin-user>.*|<admin-user>$MY_USERNAME</admin-user>|g" /etc/icecast2/icecast.xml
473
+    sed -i "s|<admin>.*|<admin>$MY_EMAIL_ADDRESS</admin>|g" /etc/icecast2/icecast.xml
474
+    sed -i "s|<location>.*|<location>The Interwebs</location>|g" /etc/icecast2/icecast.xml
471 475
 
472 476
     if [ ! -d /var/www/icecast/htdocs ]; then
473 477
         mkdir -p /var/www/icecast/htdocs