7
7
# adapter. This allows for setting the data on non-local storage so challenges
8
8
# and certs can work in a multi-server, load balanced environment.
9
9
10
- set -e -u -x
10
+ set -e -u
11
11
12
12
function deploy_challenge {
13
13
local DOMAIN=" ${1} " TOKEN_FILENAME=" ${2} " TOKEN_VALUE=" ${3} "
@@ -17,7 +17,7 @@ function deploy_challenge {
17
17
--data-urlencode " domain=$DOMAIN " \
18
18
--data-urlencode " token_filename=$TOKEN_FILENAME " \
19
19
--data-urlencode " token_value=$TOKEN_VALUE " \
20
- " http://127.0.0.1:$HOOK_SERVER_PORT /deploy-challenge"
20
+ " http://127.0.0.1:$HOOK_SERVER_PORT /deploy-challenge" || { echo " hook request (deploy_challenge) failed " 1>&2 ; exit 1 ; }
21
21
}
22
22
23
23
function clean_challenge {
@@ -28,7 +28,7 @@ function clean_challenge {
28
28
--data-urlencode " domain=$DOMAIN " \
29
29
--data-urlencode " token_filename=$TOKEN_FILENAME " \
30
30
--data-urlencode " token_value=$TOKEN_VALUE " \
31
- " http://127.0.0.1:$HOOK_SERVER_PORT /clean-challenge" || { echo " hook request failed" ; exit 1; }
31
+ " http://127.0.0.1:$HOOK_SERVER_PORT /clean-challenge" || { echo " hook request (clean_challenge) failed" 1>&2 ; exit 1; }
32
32
}
33
33
34
34
function deploy_cert {
@@ -40,7 +40,7 @@ function deploy_cert {
40
40
--data-urlencode " privkey@$KEYFILE " \
41
41
--data-urlencode " cert@$CERTFILE " \
42
42
--data-urlencode " fullchain@$FULLCHAINFILE " \
43
- " http://127.0.0.1:$HOOK_SERVER_PORT /deploy-cert" || { echo " hook request failed" ; exit 1; }
43
+ " http://127.0.0.1:$HOOK_SERVER_PORT /deploy-cert" || { echo " hook request (deploy_cert) failed" 1>&2 ; exit 1; }
44
44
}
45
45
46
46
function unchanged_cert {
0 commit comments