Browse Source

print public IP upon connect/disconnect

tags/v1.4.28
Jonathan Cobb 4 years ago
parent
commit
c7bb6447f3
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      bin/ubuntu_disconnect_bubble

+ 7
- 1
bin/ubuntu_disconnect_bubble View File

@@ -55,6 +55,12 @@ else
fi fi


if [[ ${DO_DELETE} -eq 0 ]] ; then if [[ ${DO_DELETE} -eq 0 ]] ; then
echo "
===================================================================
======= Linux device successfully disconnected from Bubble! =======
=======================================================-===========
Public IP : $(curl -s http://checkip.amazonaws.com/)
"
exit 0 exit 0
fi fi


@@ -149,7 +155,7 @@ rm -f "${BUBBLE_DEVICE_BASE}/current" || die "Error removing ${BUBBLE_DEVICE_BAS


echo " echo "
============================================================== ==============================================================
======= Linux device successfully deleted from Bubble! =======
======= Linux device successfully DELETED from Bubble! =======
============================================================== ==============================================================
Device Name : ${DEVICE_NAME} Device Name : ${DEVICE_NAME}
Bubble Host : ${BUBBLE_HOST} Bubble Host : ${BUBBLE_HOST}


Loading…
Cancel
Save