Start removing bad links #69
This commit is contained in:
parent
e4734b6ef7
commit
0e337558e6
|
@ -48,6 +48,12 @@ fedwiki_variables=(FEDWIKI_DOMAIN_NAME
|
||||||
MY_USERNAME
|
MY_USERNAME
|
||||||
MY_EMAIL_ADDRESS)
|
MY_EMAIL_ADDRESS)
|
||||||
|
|
||||||
|
function fedwiki_remove_bad_links {
|
||||||
|
if [ -f /usr/local/lib/node_modules/wiki/node_modules/wiki-security-friends/client/security.js ]; then
|
||||||
|
sed -i 's|maxcdn.bootstrapcdn.com|localhost|g' /usr/local/lib/node_modules/wiki/node_modules/wiki-security-friends/client/security.js
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function logging_on_fedwiki {
|
function logging_on_fedwiki {
|
||||||
echo -n ''
|
echo -n ''
|
||||||
}
|
}
|
||||||
|
@ -109,6 +115,7 @@ function upgrade_fedwiki {
|
||||||
|
|
||||||
systemctl stop fedwiki
|
systemctl stop fedwiki
|
||||||
npm upgrade -g wiki@$FEDWIKI_VERSION
|
npm upgrade -g wiki@$FEDWIKI_VERSION
|
||||||
|
fedwiki_remove_bad_links
|
||||||
chown -R fedwiki:fedwiki $FEDWIKI_DATA
|
chown -R fedwiki:fedwiki $FEDWIKI_DATA
|
||||||
systemctl start fedwiki
|
systemctl start fedwiki
|
||||||
|
|
||||||
|
@ -388,6 +395,8 @@ function install_fedwiki {
|
||||||
function_check add_ddns_domain
|
function_check add_ddns_domain
|
||||||
add_ddns_domain $FEDWIKI_DOMAIN_NAME
|
add_ddns_domain $FEDWIKI_DOMAIN_NAME
|
||||||
|
|
||||||
|
fedwiki_remove_bad_links
|
||||||
|
|
||||||
systemctl enable fedwiki
|
systemctl enable fedwiki
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl start fedwiki
|
systemctl start fedwiki
|
||||||
|
|
Loading…
Reference in New Issue