| 
				
			 | 
			
			
				@@ -65,6 +65,7 @@ function ghost_replace_jquery { 
			 | 
		
	
		
			
			| 
				65
			 | 
			
				65
			 | 
			
			
				     sed -i "s|http://code.jquery.com/jquery.js|$curr_domain/jquery-${jquery_version}.js|g" current/node_modules/jsdom/README.md 
			 | 
		
	
		
			
			| 
				66
			 | 
			
				66
			 | 
			
			
				     sed -i "s|https://code.jquery.com/jquery.js|$curr_domain/jquery-${jquery_version}.js|g" current/node_modules/jsdom/README.md 
			 | 
		
	
		
			
			| 
				67
			 | 
			
				67
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				68
			 | 
			
			
				+    cd /var/www/${GHOST_DOMAIN_NAME}/htdocs/current 
			 | 
		
	
		
			
			| 
				68
			 | 
			
				69
			 | 
			
			
				     find ./ -type f -exec sed -i -e 's|https://code.jquery.com|$curr_domain|g' {} \; 
			 | 
		
	
		
			
			| 
				69
			 | 
			
				70
			 | 
			
			
				     find ./ -type f -exec sed -i -e 's|http://code.jquery.com|$curr_domain|g' {} \; 
			 | 
		
	
		
			
			| 
				70
			 | 
			
				71
			 | 
			
			
				 } 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -76,13 +77,14 @@ function ghost_remove_offsite_links { 
			 | 
		
	
		
			
			| 
				76
			 | 
			
				77
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				77
			 | 
			
				78
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				78
			 | 
			
				79
			 | 
			
			
				     # remove google font links 
			 | 
		
	
		
			
			| 
				79
			 | 
			
				
			 | 
			
			
				-    cd /var/www/$GHOST_DOMAIN_NAME/htdocs 
			 | 
		
	
		
			
			| 
				
			 | 
			
				80
			 | 
			
			
				+    cd /var/www/$GHOST_DOMAIN_NAME/htdocs/current 
			 | 
		
	
		
			
			| 
				80
			 | 
			
				81
			 | 
			
			
				     find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/$curr_domain/g' {} \; 
			 | 
		
	
		
			
			| 
				81
			 | 
			
				82
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				82
			 | 
			
				83
			 | 
			
			
				     # copy jquery locally 
			 | 
		
	
		
			
			| 
				83
			 | 
			
				84
			 | 
			
			
				     previous_jquery_version='1.12.0' 
			 | 
		
	
		
			
			| 
				84
			 | 
			
				85
			 | 
			
			
				     jquery_version='1.12.4' 
			 | 
		
	
		
			
			| 
				85
			 | 
			
				86
			 | 
			
			
				     if [ ! -f /var/www/$GHOST_DOMAIN_NAME/htdocs/jquery-${jquery_version}.js ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				87
			 | 
			
			
				+        cd /var/www/$GHOST_DOMAIN_NAME/htdocs 
			 | 
		
	
		
			
			| 
				86
			 | 
			
				88
			 | 
			
			
				         wget https://code.jquery.com/jquery-${jquery_version}.js 
			 | 
		
	
		
			
			| 
				87
			 | 
			
				89
			 | 
			
			
				         jquery_hash=$(sha256sum jquery-${jquery_version}.js | awk -F ' ' '{print $1}') 
			 | 
		
	
		
			
			| 
				88
			 | 
			
				90
			 | 
			
			
				         if [[ "$jquery_hash" != '430f36f9b5f21aae8cc9dca6a81c4d3d84da5175eaedcf2fdc2c226302cb3575' ]]; then 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -120,8 +122,6 @@ function ghost_replace_proprietary_services { 
			 | 
		
	
		
			
			| 
				120
			 | 
			
				122
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				121
			 | 
			
				123
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				122
			 | 
			
				124
			 | 
			
			
				 function ghost_replace_services { 
			 | 
		
	
		
			
			| 
				123
			 | 
			
				
			 | 
			
			
				-    ghost_replace_proprietary_services /var/www/${GHOST_DOMAIN_NAME}/htdocs/core/built/assets/ghost.js 
			 | 
		
	
		
			
			| 
				124
			 | 
			
				
			 | 
			
			
				-    ghost_replace_proprietary_services /var/www/${GHOST_DOMAIN_NAME}/htdocs/core/built/assets/ghost.min.js 
			 | 
		
	
		
			
			| 
				125
			 | 
			
				125
			 | 
			
			
				     ghost_replace_proprietary_services /var/www/${GHOST_DOMAIN_NAME}/htdocs/content/themes/casper/post.hbs 
			 | 
		
	
		
			
			| 
				126
			 | 
			
				126
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				127
			 | 
			
				127
			 | 
			
			
				  
			 |