Utility to fetch a token from a layergroup config

It's in its infancy, still need to edit the script to use against
remote service or non-standard local deploys
This commit is contained in:
Sandro Santilli 2013-06-11 17:13:50 +02:00
parent 9807a5e12b
commit d53327bc33

15
tools/multilayer_token Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
if test -z "$1"; then
echo "Usage: $0 <config_file>" >&2
exit 1
fi
cfg=$1
port=8181
user=dev
domain=localhost.lan
proto=http
curl -k -H Content-Type:application/json --data-binary "@${cfg}" ${proto}://${user}.${domain}:${port}/tiles/layergroup/