Browse Source

Start removing bad links #69

Bob Mottram 7 years ago
parent
commit
0e337558e6
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/freedombone-app-fedwiki

+ 9
- 0
src/freedombone-app-fedwiki View File

48
                    MY_USERNAME
48
                    MY_USERNAME
49
                    MY_EMAIL_ADDRESS)
49
                    MY_EMAIL_ADDRESS)
50
 
50
 
51
+function fedwiki_remove_bad_links {
52
+    if [ -f /usr/local/lib/node_modules/wiki/node_modules/wiki-security-friends/client/security.js ]; then
53
+        sed -i 's|maxcdn.bootstrapcdn.com|localhost|g' /usr/local/lib/node_modules/wiki/node_modules/wiki-security-friends/client/security.js
54
+    fi
55
+}
56
+
51
 function logging_on_fedwiki {
57
 function logging_on_fedwiki {
52
     echo -n ''
58
     echo -n ''
53
 }
59
 }
109
 
115
 
110
     systemctl stop fedwiki
116
     systemctl stop fedwiki
111
     npm upgrade -g wiki@$FEDWIKI_VERSION
117
     npm upgrade -g wiki@$FEDWIKI_VERSION
118
+    fedwiki_remove_bad_links
112
     chown -R fedwiki:fedwiki $FEDWIKI_DATA
119
     chown -R fedwiki:fedwiki $FEDWIKI_DATA
113
     systemctl start fedwiki
120
     systemctl start fedwiki
114
 
121
 
388
     function_check add_ddns_domain
395
     function_check add_ddns_domain
389
     add_ddns_domain $FEDWIKI_DOMAIN_NAME
396
     add_ddns_domain $FEDWIKI_DOMAIN_NAME
390
 
397
 
398
+    fedwiki_remove_bad_links
399
+
391
     systemctl enable fedwiki
400
     systemctl enable fedwiki
392
     systemctl daemon-reload
401
     systemctl daemon-reload
393
     systemctl start fedwiki
402
     systemctl start fedwiki