Handle mobile addresses

This commit is contained in:
Bob Mottram 2016-10-02 21:04:43 +01:00
parent b43bdd662b
commit ac8fafe652
2 changed files with 11 additions and 1 deletions

View File

@ -578,7 +578,7 @@ function install_gnusocial_main {
gnusocial_ssl='never' gnusocial_ssl='never'
fi fi
MICROBLOG_ONION_HOSTNAME=$(add_onion_service microblog 80 ${MICROBLOG_ONION_PORT}) MICROBLOG_ONION_HOSTNAME=$(add_onion_service gnusocial 80 ${MICROBLOG_ONION_PORT})
MICROBLOG_SERVER=${MICROBLOG_DOMAIN_NAME} MICROBLOG_SERVER=${MICROBLOG_DOMAIN_NAME}
if [[ $ONION_ONLY != 'no' ]]; then if [[ $ONION_ONLY != 'no' ]]; then

View File

@ -360,6 +360,16 @@ function show_domains {
echo -n -e "$(pad_string "${app_name}")" echo -n -e "$(pad_string "${app_name}")"
echo -n -e "$(pad_string "${icann_address}")" echo -n -e "$(pad_string "${icann_address}")"
echo "${onion_address}" echo "${onion_address}"
if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then
if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then
onion_address=$(cat ${COMPLETION_FILE} | grep "${app_name}_mobile onion domain" | head -n 1 | awk -F ':' '{print $2}')
fi
echo -n -e "$(pad_string "${app_name} (mobile)")"
echo -n -e "$(pad_string "${icann_address}")"
echo "${onion_address}"
fi
fi fi
done done