diff --git a/update_psa_helpers b/update_psa_helpers index 5de2c60..1cf0d3d 100755 --- a/update_psa_helpers +++ b/update_psa_helpers @@ -375,7 +375,8 @@ cleanup_previous_version() { check_for_running_apism () { local func="${FUNCNAME[0]}" - if nc localhost 7778; then + if nc localhost 7778 + then APISM_RUNNING=1 log_debug "$func:${LINENO}: APISM running..." return 0 @@ -386,6 +387,7 @@ check_for_running_apism () { check_default_route () { local func="${FUNCNAME[0]}" if ip route | head -n 1 | grep -q '^default' + then log_debug "$func:${LINENO}: default route set" return 0 fi @@ -397,6 +399,7 @@ check_route_to_repository () { # ip_address=$1, e.g. git.mimbach.de (185.191.219.134) # 185.191.219.134 via 192.168.5.254 ... if test "$#" -eq 1 && ip route get "$1" | head -n 1 | grep -q "^$1" + then log_debug "$func:${LINENO}: route to repository available" return 0 fi