Re-enable fedwiki for another test

This commit is contained in:
Bob Mottram 2018-01-04 18:43:56 +00:00
parent fe625559de
commit 7d5724e082
1 changed files with 10 additions and 4 deletions

View File

@ -16,7 +16,7 @@
# License
# =======
#
# Copyright (C) 2017 Bob Mottram <bob@freedombone.net>
# Copyright (C) 2017-2018 Bob Mottram <bob@freedombone.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@ -31,7 +31,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
VARIANTS=""
VARIANTS='full full-vim writer'
IN_DEFAULT_INSTALL=0
SHOW_ON_ABOUT=1
@ -444,14 +444,20 @@ function install_fedwiki {
echo '[Install]' >> /etc/systemd/system/fedwiki.service
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/fedwiki.service
fedwiki_auth_file=${FEDWIKI_DATA}/status/owner.json
echo '{' > $fedwiki_auth_file
echo " \"name\": \"${MY_USERNAME}\"," >> $fedwiki_auth_file
echo ' \"friend\": {' >> $fedwiki_auth_file
echo " \"secret\": \"${FEDWIKI_COOKIE}\"" >> $fedwiki_auth_file
echo ' }' >> $fedwiki_auth_file
echo '}' >> $fedwiki_auth_file
chown -R fedwiki:fedwiki $FEDWIKI_DATA
fedwiki_setup_web
${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