From 8641bb5541ace0a5055a8521ba0d5ba99c82df2e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 8 Nov 2016 14:10:14 +0000 Subject: [PATCH] Use onion address for ghost blog --- src/freedombone-app-ghost | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-app-ghost b/src/freedombone-app-ghost index 10d47845..0ad21768 100755 --- a/src/freedombone-app-ghost +++ b/src/freedombone-app-ghost @@ -424,6 +424,10 @@ function install_ghost { configure_php GHOST_ONION_HOSTNAME=$(add_onion_service ghost 80 ${GHOST_ONION_PORT}) + if [[ $ONION_ONLY != 'no' ]]; then + sed -i "s|url: .*|url: 'http://${GHOST_ONION_HOSTNAME}',|g" /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js + systemctl restart ghost + fi function_check nginx_ensite nginx_ensite $GHOST_DOMAIN_NAME