|
@@ -48,6 +48,12 @@ fedwiki_variables=(FEDWIKI_DOMAIN_NAME
|
48
|
48
|
MY_USERNAME
|
49
|
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
|
57
|
function logging_on_fedwiki {
|
52
|
58
|
echo -n ''
|
53
|
59
|
}
|
|
@@ -109,6 +115,7 @@ function upgrade_fedwiki {
|
109
|
115
|
|
110
|
116
|
systemctl stop fedwiki
|
111
|
117
|
npm upgrade -g wiki@$FEDWIKI_VERSION
|
|
118
|
+ fedwiki_remove_bad_links
|
112
|
119
|
chown -R fedwiki:fedwiki $FEDWIKI_DATA
|
113
|
120
|
systemctl start fedwiki
|
114
|
121
|
|
|
@@ -388,6 +395,8 @@ function install_fedwiki {
|
388
|
395
|
function_check add_ddns_domain
|
389
|
396
|
add_ddns_domain $FEDWIKI_DOMAIN_NAME
|
390
|
397
|
|
|
398
|
+ fedwiki_remove_bad_links
|
|
399
|
+
|
391
|
400
|
systemctl enable fedwiki
|
392
|
401
|
systemctl daemon-reload
|
393
|
402
|
systemctl start fedwiki
|