diff --git a/contrib/liveusb/setup.sh b/contrib/liveusb/setup.sh index 62c46b1c7..29bbff726 100755 --- a/contrib/liveusb/setup.sh +++ b/contrib/liveusb/setup.sh @@ -2,15 +2,14 @@ set -e -RECEIPENTS="stvogel@eonerc.rwth-aachen.de,mstevic@eonerc.rwth-aachen.de" -FROM="Simulator2Simulator Server " +RECIPIENTS="stvogel@eonerc.rwth-aachen.de,mstevic@eonerc.rwth-aachen.de" SERVER=tux.0l.de USER=acs PORT=$(shuf -i 60000-65535 -n 1) -IP=$(curl -s http://ifconfig.me) +IP=$(curl -s http://canihazip.com/s) # check if system has net connectivity. otherwise die... ssh -q -o ConnectTimeout=2 $USER@$SERVER @@ -21,7 +20,11 @@ ssh -f -N -L 25:localhost:25 $USER@$SERVER ssh -f -N -R $PORT:localhost:22 $USER@$SERVER # send mail with notification about new node -mail -s "New S2SS node alive: $IP ($HOSTNAME)" -a "From: $FROM" "$RECEIPENTS" < +To: $(RECIPIENTS) + There's a new host with the S2SS LiveUSB Image running: Reverse SSH tunnel port: $PORT