removes un-necessary logging steps.
This commit is contained in:
parent
4610606975
commit
70efb15c2d
@ -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."
|
||||
|
Reference in New Issue
Block a user