瀏覽代碼

Set directories for search

Bob Mottram 7 年之前
父節點
當前提交
810e346f69
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      src/freedombone-app-ghost

+ 3
- 3
src/freedombone-app-ghost 查看文件

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