|  | @@ -84,8 +84,9 @@ function ghost_replace_jquery {
 | 
	
		
			
			| 84 | 84 |  
 | 
	
		
			
			| 85 | 85 |  function ghost_rss_button {
 | 
	
		
			
			| 86 | 86 |      # remove feedly -aaargh!
 | 
	
		
			
			| 87 |  | -    sed -i 's|http://cloud.feedly.com/#subscription/feed/{{@blog.url}}/rss/|{{@blog.url}}/rss/|g' /var/www/$GHOST_DOMAIN_NAME/htdocs/current/content/themes/casper/partials/site-nav.hbs
 | 
	
		
			
			| 88 |  | -    sed -i 's|http://cloud.feedly.com/#subscription/feed/{{url absolute="true"}}/rss/|{{url absolute="true"}}rss/|g' /var/www/$GHOST_DOMAIN_NAME/htdocs/current/content/themes/casper/author.hbs
 | 
	
		
			
			|  | 87 | +    sed -i 's|http://cloud.feedly.com/#subscription/feed/{{@blog.url}}/rss/|{{@blog.url}}/rss/|g' /var/www/$GHOST_DOMAIN_NAME/htdocs/versions/${GHOST_VERSION}/content/themes/casper/partials/site-nav.hbs
 | 
	
		
			
			|  | 88 | +    sed -i 's|http://cloud.feedly.com/#subscription/feed/{{url absolute="true"}}/rss/|{{url absolute="true"}}rss/|g' /var/www/$GHOST_DOMAIN_NAME/htdocs/versions/${GHOST_VERSION}/content/themes/casper/author.hbs
 | 
	
		
			
			|  | 89 | +
 | 
	
		
			
			| 89 | 90 |  }
 | 
	
		
			
			| 90 | 91 |  
 | 
	
		
			
			| 91 | 92 |  function ghost_remove_offsite_links {
 | 
	
	
		
			
			|  | @@ -464,8 +465,17 @@ function install_ghost {
 | 
	
		
			
			| 464 | 465 |  
 | 
	
		
			
			| 465 | 466 |      ghost_bust
 | 
	
		
			
			| 466 | 467 |  
 | 
	
		
			
			| 467 |  | -    # NOTE: this has to be http, not https
 | 
	
		
			
			| 468 |  | -    sed -i "s|\"url\":|\"url\": \"http://${GHOST_DOMAIN_NAME}/\",|g" /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 468 | +    echo '{' > /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 469 | +    if [[ "$ONION_ONLY" == 'no' ]]; then
 | 
	
		
			
			|  | 470 | +        # NOTE: url must be http, not https
 | 
	
		
			
			|  | 471 | +        echo "  \"url\": \"http://${GHOST_DOMAIN_NAME}\"," >> /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 472 | +    else
 | 
	
		
			
			|  | 473 | +        echo "  \"url\": \"http://${GHOST_ONION_HOSTNAME}\"," >> /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 474 | +    fi
 | 
	
		
			
			|  | 475 | +    echo '    "paths": {' >> /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 476 | +    echo "        \"contentPath\": \"/var/www/${GHOST_DOMAIN_NAME}/htdocs/content\"" >> /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 477 | +    echo '    }' >> /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			|  | 478 | +    echo '}' >> /var/www/${GHOST_DOMAIN_NAME}/htdocs/config.development.json
 | 
	
		
			
			| 469 | 479 |  
 | 
	
		
			
			| 470 | 480 |      echo '[Unit]' > /etc/systemd/system/ghost.service
 | 
	
		
			
			| 471 | 481 |      echo 'Description=Ghost Blog' >> /etc/systemd/system/ghost.service
 |