From 810e346f69785996521c33f1c7eec8fa6682c36a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Jul 2017 15:17:49 +0100 Subject: [PATCH] Set directories for search --- src/freedombone-app-ghost | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-ghost b/src/freedombone-app-ghost index 96dc933f..e1cbca34 100755 --- a/src/freedombone-app-ghost +++ b/src/freedombone-app-ghost @@ -65,6 +65,7 @@ function ghost_replace_jquery { sed -i "s|http://code.jquery.com/jquery.js|$curr_domain/jquery-${jquery_version}.js|g" current/node_modules/jsdom/README.md sed -i "s|https://code.jquery.com/jquery.js|$curr_domain/jquery-${jquery_version}.js|g" current/node_modules/jsdom/README.md + cd /var/www/${GHOST_DOMAIN_NAME}/htdocs/current find ./ -type f -exec sed -i -e 's|https://code.jquery.com|$curr_domain|g' {} \; find ./ -type f -exec sed -i -e 's|http://code.jquery.com|$curr_domain|g' {} \; } @@ -76,13 +77,14 @@ function ghost_remove_offsite_links { fi # remove google font links - cd /var/www/$GHOST_DOMAIN_NAME/htdocs + cd /var/www/$GHOST_DOMAIN_NAME/htdocs/current find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/$curr_domain/g' {} \; # copy jquery locally previous_jquery_version='1.12.0' jquery_version='1.12.4' if [ ! -f /var/www/$GHOST_DOMAIN_NAME/htdocs/jquery-${jquery_version}.js ]; then + cd /var/www/$GHOST_DOMAIN_NAME/htdocs wget https://code.jquery.com/jquery-${jquery_version}.js jquery_hash=$(sha256sum jquery-${jquery_version}.js | awk -F ' ' '{print $1}') if [[ "$jquery_hash" != '430f36f9b5f21aae8cc9dca6a81c4d3d84da5175eaedcf2fdc2c226302cb3575' ]]; then @@ -120,8 +122,6 @@ function ghost_replace_proprietary_services { } function ghost_replace_services { - ghost_replace_proprietary_services /var/www/${GHOST_DOMAIN_NAME}/htdocs/core/built/assets/ghost.js - ghost_replace_proprietary_services /var/www/${GHOST_DOMAIN_NAME}/htdocs/core/built/assets/ghost.min.js ghost_replace_proprietary_services /var/www/${GHOST_DOMAIN_NAME}/htdocs/content/themes/casper/post.hbs }