A live bird collage card for your Home Assistant dashboard.
making icecast2 more secure by default
mcguirepr8949975f8f60c2
diff --git a/scripts/install_services.sh b/scripts/install_services.shindex 3d99e9bd..3f5eec3e 100755--- a/scripts/install_services.sh+++ b/scripts/install_services.sh@@ -379,6 +379,8 @@ config_icecast() {for i in "${passwords[@]}";dosed -i "s/<${i}password>.*<\/${i}password>/<${i}password>${ICE_PWD}<\/${i}password>/g" /etc/icecast2/icecast.xmldone+ sed -i 's|<!-- <bind-address>.*|<bind-address>127.0.0.1</bind-address>|;s|<!-- <shoutcast-mount>.*|<shoutcast-mount>/stream</shoutcast-mount>|'+systemctl enable icecast2.service}diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex 59604b29..de95c677 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -107,6 +107,9 @@ if ! grep '\-\-browser.gatherUsageStats false' $HOME/BirdNET-Pi/templates/birdnesudo systemctl daemon-reload && restart_services.shfi+# Make IceCast2 a little more secure+sudo sed -i 's|<!-- <bind-address>.*|<bind-address>127.0.0.1</bind-address>|;s|<!-- <shoutcast-mount>.*|<shoutcast-mount>/stream</shoutcast-mount>|' /etc/icecast2/icecast.xml+sudo systemctl restart icecast2sudo systemctl daemon-reloadrestart_services.sh