From d9ef2abccd658f25979529fb242254c53461ede3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Sep 2014 17:06:18 +0100 Subject: [PATCH] Domain name logic --- install-freedombone.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 02d3084f..a5905aab 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -2054,7 +2054,12 @@ function install_blog { if grep -Fxq "install_blog" $COMPLETION_FILE; then return fi - if [ ! -f $WIKI_DOMAIN_NAME ]; then + # if this is exclusively a writer setup + if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" ]]; then + WIKI_DOMAIN_NAME=$DOMAIN_NAME + WIKI_FREEDNS_SUBDOMAIN_CODE=$FREEDNS_SUBDOMAIN_CODE + fi + if [ ! $WIKI_DOMAIN_NAME ]; then return fi