浏览代码

scuttlebot domain variables

Bob Mottram 7 年前
父节点
当前提交
5912190040
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      src/freedombone-app-scuttlebot

+ 5
- 0
src/freedombone-app-scuttlebot 查看文件

@@ -44,6 +44,8 @@ GIT_SSB_PORT=7718
44 44
 NGINX_GIT_SSB_PORT=7719
45 45
 
46 46
 scuttlebot_variables=(MY_USERNAME
47
+                      SCUTTLEBOT_DOMAIN_NAME
48
+                      SCUTTLEBOT_CODE
47 49
                       DEFAULT_DOMAIN_NAME
48 50
                       SYSTEM_TYPE)
49 51
 
@@ -225,6 +227,9 @@ function scuttlebot_git_setup {
225 227
         echo '  add_header X-Content-Type-Options nosniff;' >> $git_ssb_nginx_site
226 228
         echo '  add_header X-Frame-Options SAMEORIGIN;' >> $git_ssb_nginx_site
227 229
     else
230
+        if [ ! $SCUTTLEBOT_DOMAIN_NAME ]; then
231
+            exit 7357225
232
+        fi
228 233
         git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
229 234
         function_check nginx_http_redirect
230 235
         nginx_http_redirect $SCUTTLEBOT_DOMAIN_NAME "index index.html"