From e98a2fc7c01be50c1dc65c07e3eb948921bf31a0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 4 Jan 2018 13:16:49 +0000 Subject: [PATCH] Add fedwiki friends module --- src/freedombone-app-fedwiki | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/freedombone-app-fedwiki b/src/freedombone-app-fedwiki index fdcdb730..349dd456 100755 --- a/src/freedombone-app-fedwiki +++ b/src/freedombone-app-fedwiki @@ -262,6 +262,7 @@ function remove_fedwiki { rm /etc/systemd/system/fedwiki.service systemctl daemon-reload + npm uninstall -g wiki-security-friends npm uninstall -g wiki function_check remove_nodejs @@ -399,6 +400,12 @@ function install_fedwiki { exit 6293523 fi + npm install -g wiki-security-friends@0.1.0 + if [ ! "$?" = "0" ]; then + echo $'Failed to install wiki-security-friends' + exit 783533 + fi + if [ ! -f /usr/local/bin/wiki ]; then echo $'wiki was not installed' exit 5293524 @@ -440,6 +447,8 @@ function install_fedwiki { ${PROJECT_NAME}-pass -u $MY_USERNAME -a fedwiki -p "$FEDWIKI_ADMIN_PASSWORD" + fedwiki_auth_file=/var/lib/fedwiki/status/owner.json + function_check add_ddns_domain add_ddns_domain $FEDWIKI_DOMAIN_NAME