removes un-necessary logging steps.

This commit is contained in:
Hyatt 2020-08-31 08:54:10 -05:00
parent 4610606975
commit 70efb15c2d
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

@ -46,7 +46,6 @@ spec:
container('kaniko') {
def connectivity_test = """
#! /usr/bin/env bash
printf '%s\n' "Checking deluge service"
curl --silent --fail --insecure http://localhost:8112 > /dev/null
if [[ "\${?}" != "0" ]]; then
printf '%s\n' "Deluge not running."
@ -58,14 +57,12 @@ if [[ -z "\${DDNS_HOST}" ]] || [[ "\${DDNS_HOST}" == "" ]]; then
exit 100
fi
printf '%s\n' "Detecting public IP"
DIP=\$(dig @ns1.google.com TXT o-o.myaddr.l.google.com +short | sed -e 's/"//g')
if [[ -z "\${DIP+x}" ]] || [[ "\${DIP}" == "" ]]; then
printf '%s\n' "Unable to detect real-world IP."
exit 100
fi
printf '%s\n' "Getting known IP"
KIP=\$(dig \${DDNS_HOST} +short)
if [[ -z "\${KIP+x}" ]] || [[ "\${KIP}" == "" ]]; then
printf '%s\n' "Unable to get known IP."
@ -77,7 +74,6 @@ if [[ "\${DIP}" == "\${KIP}" ]]; then
exit 100
fi
printf '%s\n' "Checking connectivity."
ping -c 2 google.com > /dev/null
if [[ "\${?}" != "0" ]]; then
printf '%s\n' "No internet connectivity."