File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ APPRISE_URL=${APPRISE_URL:-""}
1313
1414# only use unix domain socket if no TCP endpoint is defined
1515case " ${DOCKER_SOCK} " in
16- " tcp://" * ) HTTP_ENDPOINT=" $( echo ${DOCKER_SOCK} | sed ' s#tcp://#http://#' ) "
16+ " tcp://" * ) HTTP_ENDPOINT=" $( echo " ${DOCKER_SOCK} " | sed ' s#tcp://#http://#' ) "
1717 ;;
18- " tcps://" * ) HTTP_ENDPOINT=" $( echo ${DOCKER_SOCK} | sed ' s#tcps://#https://#' ) "
18+ " tcps://" * ) HTTP_ENDPOINT=" $( echo " ${DOCKER_SOCK} " | sed ' s#tcps://#https://#' ) "
1919 CA=" --cacert /certs/ca.pem"
2020 CLIENT_KEY=" --key /certs/client-key.pem"
2121 CLIENT_CERT=" --cert /certs/client-cert.pem"
@@ -81,13 +81,13 @@ notify_webhook() {
8181 if [ -n " $WEBHOOK_URL " ]
8282 then
8383 # execute webhook requests as background process to prevent healer from blocking
84- curl -s -X POST -H " Content-type: application/json" -d " $( generate_webhook_payload $text ) " $WEBHOOK_URL
84+ curl -s -X POST -H " Content-type: application/json" -d " $( generate_webhook_payload $text ) " " $WEBHOOK_URL "
8585 fi
8686
8787 if [ -n " $APPRISE_URL " ]
8888 then
8989 # execute webhook requests as background process to prevent healer from blocking
90- curl -s -X POST -H " Content-type: application/json" -d " $( generate_apprise_payload $text ) " $APPRISE_URL
90+ curl -s -X POST -H " Content-type: application/json" -d " $( generate_apprise_payload $text ) " " $APPRISE_URL "
9191 fi
9292}
9393
You can’t perform that action at this time.
0 commit comments