exit if ssh breaks
This commit is contained in:
parent
caabcc2f47
commit
ddbc95f6f0
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ public_key=$(echo $private_key | wg pubkey)
|
|||
vpn_endpoint_host=vpn-2a0ae5c1.ungleich.ch
|
||||
vpn_endpoint_pubkey=hi60lGP+xEUQ+kVnqA7PlJAO1SVqTS1W36g0LhFP0xQ=
|
||||
|
||||
cat <<EOF | ssh -t "root@${my_ip}"
|
||||
cat <<EOF | ssh -t "root@${my_ip}" || exit 1
|
||||
set -x
|
||||
|
||||
# Check if we can reach upstream - otherwise abort
|
||||
|
|
Loading…
Reference in a new issue