From a47ca9651c88d601e03df86818400af0ea6c26f6 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 10 Feb 2022 10:26:58 -0500 Subject: [PATCH] making sure wttr.in links stays the same --- scripts/update_caddyfile.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/update_caddyfile.sh b/scripts/update_caddyfile.sh index 6d8008a..6b8982d 100755 --- a/scripts/update_caddyfile.sh +++ b/scripts/update_caddyfile.sh @@ -70,6 +70,8 @@ fi sudo -u${USER} git -C /home/pi/BirdNET-Pi checkout -f homepage/* sudo -u${USER} git -C /home/pi/BirdNET-Pi checkout -f scripts/* sudo -u${USER} git -C /home/pi/BirdNET-Pi checkout -f scripts/*/* +sudo -u${USER} sed -i "s/https:\/\/v2.wttr.in\//https:\/\/v2.wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html + if [ ! -z ${BIRDNETLOG_URL} ];then BIRDNETLOG_URL="$(echo ${BIRDNETLOG_URL} | sed 's/\/\//\\\/\\\//g')" else