Sfoglia il codice sorgente

Handle mobile addresses

Bob Mottram 8 anni fa
parent
commit
ac8fafe652
2 ha cambiato i file con 11 aggiunte e 1 eliminazioni
  1. 1
    1
      src/freedombone-app-gnusocial
  2. 10
    0
      src/freedombone-controlpanel

+ 1
- 1
src/freedombone-app-gnusocial Vedi File

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

+ 10
- 0
src/freedombone-controlpanel Vedi File

@@ -360,6 +360,16 @@ function show_domains {
360 360
             echo -n -e "$(pad_string "${app_name}")"
361 361
             echo -n -e "$(pad_string "${icann_address}")"
362 362
             echo "${onion_address}"
363
+
364
+            if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then
365
+                if grep -q "${app_name}_mobile onion domain" $COMPLETION_FILE; then
366
+                    onion_address=$(cat ${COMPLETION_FILE} | grep "${app_name}_mobile onion domain" | head -n 1 | awk -F ':' '{print $2}')
367
+                fi
368
+
369
+                echo -n -e "$(pad_string "${app_name} (mobile)")"
370
+                echo -n -e "$(pad_string "${icann_address}")"
371
+                echo "${onion_address}"
372
+            fi
363 373
         fi
364 374
     done
365 375