From d53327bc332c1cbe7515e5894bac906981e5e8f0 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 11 Jun 2013 17:13:50 +0200 Subject: [PATCH] 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 --- tools/multilayer_token | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/multilayer_token diff --git a/tools/multilayer_token b/tools/multilayer_token new file mode 100755 index 00000000..3a44e6e0 --- /dev/null +++ b/tools/multilayer_token @@ -0,0 +1,15 @@ +#!/bin/sh + +if test -z "$1"; then + echo "Usage: $0 " >&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/ +