From e022c59bea1e66e77b4567d0e65d65260113639f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 4 Jan 2016 10:51:44 +0000 Subject: [PATCH] Show ssh onion domain --- src/freedombone-controlpanel | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 9e4b42bf..47cf8f35 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -129,6 +129,11 @@ function show_domains { echo -n -e "$(pad_string 'Tor')" echo '' echo '--------------------------------------------------------------------------' + if grep -q "ssh onion domain" $COMPLETION_FILE; then + echo -n -e "$(pad_string 'ssh')" + echo -n -e "$(pad_string ${DEFAULT_DOMAIN_NAME})" + echo "$(cat ${COMPLETION_FILE} | grep 'ssh onion domain' | awk -F ':' '{print $2}')" + fi if grep -q "Email onion domain" $COMPLETION_FILE; then echo -n -e "$(pad_string 'Email')" echo -n -e "$(pad_string ${DEFAULT_DOMAIN_NAME})"