Selaa lähdekoodia

Use onion address for ghost blog

Bob Mottram 8 vuotta sitten
vanhempi
commit
8641bb5541
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4
    0
      src/freedombone-app-ghost

+ 4
- 0
src/freedombone-app-ghost Näytä tiedosto

424
     configure_php
424
     configure_php
425
 
425
 
426
     GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
426
     GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT})
427
+    if [[ $ONION_ONLY != 'no' ]]; then
428
+        sed -i "s|url: .*|url: 'http://${GHOST_ONION_HOSTNAME}',|g" /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
429
+        systemctl restart ghost
430
+    fi
427
 
431
 
428
     function_check nginx_ensite
432
     function_check nginx_ensite
429
     nginx_ensite $GHOST_DOMAIN_NAME
433
     nginx_ensite $GHOST_DOMAIN_NAME