Read default domain

This commit is contained in:
Bob Mottram 2017-05-23 15:45:37 +01:00
parent 7aff83ac98
commit c67e9c9636
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ scuttlebot_variables=(MY_USERNAME
SYSTEM_TYPE)
function scuttlebot_create_invite {
read_config_param ${GNUSOCIAL_DOMAIN_NAME}
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")