dynamically create wttr.in link on install_services.sh

This commit is contained in:
Patrick McGuire
2021-12-01 15:55:09 -05:00
parent fc65db5f01
commit 8cb9ad0a1c
+1 -1
View File
@@ -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
}