From e4ca40099e32b139c43a864716679f3ce806fe7a Mon Sep 17 00:00:00 2001 From: Rikard Gynnerstedt Date: Tue, 27 Jun 2017 09:40:22 +0200 Subject: [PATCH] added newline at the end, use debug2 for response and changed shabang --- deploy/consul.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/consul.sh b/deploy/consul.sh index 1cb356d8..ccd280b0 100644 --- a/deploy/consul.sh +++ b/deploy/consul.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh #Here is the script to deploy the cert to your consul key/value store. #export DEPLOY_CONSUL_URL=http://localhost:8500/v1/kv @@ -42,22 +42,22 @@ consul_deploy() { # private _info uploading "$_ckey" response=$(_post "@${_ckey}" "${upload_base_url}/${_cdomain}.key" "" "PUT") - _debug response "$response" + _debugw response "$response" # public _info uploading "$_ccert" response=$(_post "@${_ccert}" "${upload_base_url}/${_cdomain}.cer" "" "PUT") - _debug response "$response" + _debugw response "$response" # ca _info uploading "$_cca" response=$(_post "@${_cca}" "${upload_base_url}/ca.cer" "" "PUT") - _debug response "$response" + _debugw response "$response" # fullchain _info uploading "$_cfullchain" response=$(_post "@${_cfullchain}" "${upload_base_url}/fullchain.cer" "" "PUT") - _debug response "$response" + _debugw response "$response" return 0