A live bird collage card for your Home Assistant dashboard.
making changes for avahi-aliases
mcguirepr8927dace0cbe0d
diff --git a/scripts/update_services.sh b/scripts/update_services.shindex 9b65664a..18dbb4f4 100755--- a/scripts/update_services.sh+++ b/scripts/update_services.sh@@ -131,7 +131,13 @@ create_necessary_dirs() {fisudo -u ${USER} ln -fs $(dirname ${my_dir})/scripts ${EXTRACTED}- if [ ! -z ${BIRDNETPI_URL} ];then+ if [ -z ${BIRDNETPI_URL} ];then+ sudo -u${USER} sed -i "s/birdnetpi.local/$(hostname).local/g" $(dirname ${my_dir})/homepage/*.html+ phpfiles="$(grep -l birdnetpi.local ${my_dir}/*.php)"+ for i in "${phpfiles[@]}";do+ sudo -u${USER} sed -i "s/birdnetpi.local/$(hostname).local/g" ${i}+ done+ elseBIRDNETPI_URL="$(echo ${BIRDNETPI_URL} | sed 's/\/\//\\\/\\\//g')"sudo -u${USER} sed -i "s/http:\/\/$(hostname).local/"${BIRDNETPI_URL}"/g" $(dirname ${my_dir})/homepage/*.htmlphpfiles="$(grep -l $(hostname).local ${my_dir}/*.php)"