From 55a1f668a4b3158f2976a0aacf9772a1edf4f87e Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 5 Jan 2020 00:07:06 -0500 Subject: [PATCH] Display SNApp address after restart of lokinet. --- installers/common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index 4745060..5e5f746 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -129,6 +129,9 @@ function install_complete() { sudo rm -r /tmp/snapp || install_error "Unable to remove /tmp/snapp folder" install_log "Installation completed!" + IP="10.0.0.1" + snapp_address=$(nslookup $IP | sed -n 's/.*arpa.*name = \(.*\)/\1/p') + echo -e "Your Lokinet Address is:\nhttp://${snapp_address}" echo -n "Installation complete. Do you wish to launch your SNApp? [y/N]: " read answer @@ -151,6 +154,6 @@ function install_pihost() { create_webpage_directory download_latest_files change_file_ownership - display_lokiaddress + #display_lokiaddress install_complete }