From 8cb9ad0a1c55ca9b6abdcfcf1a868f73d8834f79 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Wed, 1 Dec 2021 15:55:09 -0500 Subject: [PATCH] dynamically create wttr.in link on install_services.sh --- scripts/install_services.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 24dd3ed..373dea2 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -151,7 +151,7 @@ create_necessary_dirs() { sudo -u ${USER} cp -f $(dirname ${my_dir})/templates/index_bootstrap.html ${HOME}/phpsysinfo/templates/html echo "Setting Wttr.in URL to "${LATITUDE}", "${LONGITUDE}"" - sudo -u${USER} sed -i "s/https:\/\/wttr.in/https:\/\/wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html + sudo -u${USER} sed -i "s/https:\/\/v2.wttr.in\//https:\/\/wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html }