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
 ICECAST_LOGIN_TEXT=$"Icecast login"
43
 ICECAST_LOGIN_TEXT=$"Icecast login"
44
 
44
 
45
 icecast_variables=(MY_USERNAME
45
 icecast_variables=(MY_USERNAME
46
+                   MY_EMAIL_ADDRESS
46
                    ONION_ONLY
47
                    ONION_ONLY
47
                    ICECAST_DOMAIN_NAME
48
                    ICECAST_DOMAIN_NAME
48
                    ICECAST_CODE
49
                    ICECAST_CODE
468
         /etc/icecast2/icecast.xml
469
         /etc/icecast2/icecast.xml
469
 
470
 
470
     sed -i "s|<port>.*|<port>$ICECAST_PORT</port>|g" /etc/icecast2/icecast.xml
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
     if [ ! -d /var/www/icecast/htdocs ]; then
476
     if [ ! -d /var/www/icecast/htdocs ]; then
473
         mkdir -p /var/www/icecast/htdocs
477
         mkdir -p /var/www/icecast/htdocs