From 59121900409ad28baed360a0edd3c9403ffee6c5 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Tue, 12 Dec 2017 17:46:38 +0000
Subject: [PATCH] scuttlebot domain variables

---
 src/freedombone-app-scuttlebot | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/freedombone-app-scuttlebot b/src/freedombone-app-scuttlebot
index c2a20dcd7..b96403b25 100755
--- a/src/freedombone-app-scuttlebot
+++ b/src/freedombone-app-scuttlebot
@@ -44,6 +44,8 @@ GIT_SSB_PORT=7718
 NGINX_GIT_SSB_PORT=7719
 
 scuttlebot_variables=(MY_USERNAME
+                      SCUTTLEBOT_DOMAIN_NAME
+                      SCUTTLEBOT_CODE
                       DEFAULT_DOMAIN_NAME
                       SYSTEM_TYPE)
 
@@ -225,6 +227,9 @@ function scuttlebot_git_setup {
         echo '  add_header X-Content-Type-Options nosniff;' >> $git_ssb_nginx_site
         echo '  add_header X-Frame-Options SAMEORIGIN;' >> $git_ssb_nginx_site
     else
+        if [ ! $SCUTTLEBOT_DOMAIN_NAME ]; then
+            exit 7357225
+        fi
         git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
         function_check nginx_http_redirect
         nginx_http_redirect $SCUTTLEBOT_DOMAIN_NAME "index index.html"
-- 
GitLab