fixed clear_all_data.sh bug where it broke wttr.in link
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user