support google map api key replacement

This commit is contained in:
Andrew Coleman 2017-05-22 13:22:41 -04:00
commit 36d8a91690

View file

@ -2,11 +2,16 @@
SLEEP=${1}
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