fixed clear_all_data.sh bug where it broke wttr.in link

This commit is contained in:
Patrick McGuire
2021-12-08 13:12:20 -05:00
parent 7273c078b9
commit aa37971449
+1
View File
@@ -59,6 +59,7 @@ sudo -u ${USER} cp -f $(dirname ${my_dir})/templates/green_bootstrap.css ${HOME}
sudo -u ${USER} cp -f $(dirname ${my_dir})/templates/index_bootstrap.html ${HOME}/phpsysinfo/templates/html sudo -u ${USER} cp -f $(dirname ${my_dir})/templates/index_bootstrap.html ${HOME}/phpsysinfo/templates/html
echo "Setting Wttr.in URL to "${LATITUDE}", "${LONGITUDE}"" echo "Setting Wttr.in URL to "${LATITUDE}", "${LONGITUDE}""
sudo -u ${USER} git -C $(dirname ${my_dir}) checkout -f homepage/menu.html
sudo -u ${USER} sed -i "s/https:\/\/v2.wttr.in\//https:\/\/v2.wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html sudo -u ${USER} sed -i "s/https:\/\/v2.wttr.in\//https:\/\/v2.wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html
echo "Generating BirdDB.txt" echo "Generating BirdDB.txt"