support google map api key replacement

master
Andrew Coleman 2017-05-22 13:22:41 -04:00
parent 368645be70
commit 36d8a91690
1 changed files with 7 additions and 2 deletions

View File

@ -2,11 +2,16 @@
SLEEP=${1}
overviewer.py --config=/config.py
function update_map() {
overviewer.py --config=/config.py
sed -i "s/sensor=false/key=${GOOGLE_MAPS_API_KEY}\&sensor=false/" /map/index.html
}
update_map
while [ ! -z ${SLEEP} ] ; do
while [ true ] ; do
sleep ${SLEEP}
overviewer.py --config=/config.py
update_map
done
done