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