From 0e89a3fba2db349ac8bc3461957933a2bc2c05dc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 May 2017 15:35:04 +0100 Subject: [PATCH] Torify invite code --- src/freedombone-app-scuttlebot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-scuttlebot b/src/freedombone-app-scuttlebot index 19062759..c9438253 100755 --- a/src/freedombone-app-scuttlebot +++ b/src/freedombone-app-scuttlebot @@ -44,7 +44,8 @@ scuttlebot_variables=(MY_USERNAME SYSTEM_TYPE) function scuttlebot_create_invite { - invite_string=$(su -c "sbot invite.create 1" - scuttlebot | sed 's/"//g') + SCUTTLEBOT_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_scuttlebot/hostname) + invite_string=$(su -c "sbot invite.create 1" - scuttlebot | sed 's/"//g' | sed 's/$DEFAULT_DOMAIN_NAME/$SCUTTLEBOT_ONION_HOSTNAME/g') clear echo -e '\n\nYour Scuttlebot invite code is:\n\n'${invite_string}'\n\n' @@ -233,7 +234,7 @@ function install_scuttlebot { fi echo '{' > /etc/scuttlebot/.ssb/config - echo " \"host\": \"${SCUTTLEBOT_ONION_HOSTNAME}\"," >> /etc/scuttlebot/.ssb/config + echo " \"host\": \"${DEFAULT_DOMAIN_NAME}\"," >> /etc/scuttlebot/.ssb/config echo " \"port\": ${SCUTTLEBOT_PORT}," >> /etc/scuttlebot/.ssb/config echo ' "timeout": 30000,' >> /etc/scuttlebot/.ssb/config echo ' "pub": true,' >> /etc/scuttlebot/.ssb/config