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:
parent
9807a5e12b
commit
d53327bc33
15
tools/multilayer_token
Executable file
15
tools/multilayer_token
Executable 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/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user