tilecache: fix token variable name
authorGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 21:25:05 +0000 (21:25 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 21:25:05 +0000 (21:25 +0000)
cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb

index 16eeb080dd8f1e2146a73ae93166d76ef7f34255..bcedc6748d596536cbb3fa97d3e9245cc22d416f 100755 (executable)
@@ -4,7 +4,7 @@
 set -e
 NUM_TOKENS=4 # current + 4
 VALID_TOKEN=3600 # in seconds
-QOS_TOKENS=($(/usr/bin/oathtool --totp --window=${NUM_TOKENS} --time-step-size=${VALID_TOKEN}s <%= totp_key %>))
+QOS_TOKENS=($(/usr/bin/oathtool --totp --window=${NUM_TOKENS} --time-step-size=${VALID_TOKEN}s <%= @totp_key %>))
 
 # ${qos_tokens[3]/[-1] } = OSM.org exclusive / current
 # ${qos_tokens[2]/[-2] } = tile.openstreetmap.org default