Browse Source

Check that gogs domain differs from others

Bob Mottram 9 years ago
parent
commit
fc81fd4519
1 changed files with 55 additions and 0 deletions
  1. 55
    0
      src/freedombone

+ 55
- 0
src/freedombone View File

@@ -1243,6 +1243,12 @@ function check_domains {
1243 1243
           echo $'Wiki domain name is the same as hubzilla domain name. They must be different'
1244 1244
           exit 65848
1245 1245
       fi
1246
+      if [ $GIT_DOMAIN_NAME ]; then
1247
+          if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then
1248
+              echo $'Wiki domain name is the same as Gogs domain name. They must be different'
1249
+              exit 73529
1250
+          fi
1251
+      fi
1246 1252
   fi
1247 1253
 
1248 1254
   if [ $OWNCLOUD_DOMAIN_NAME ]; then
@@ -1264,6 +1270,12 @@ function check_domains {
1264 1270
           echo $'Owncloud domain name is the same as hubzilla domain name. They must be different'
1265 1271
           exit 68365
1266 1272
       fi
1273
+      if [ $GIT_DOMAIN_NAME ]; then
1274
+          if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then
1275
+              echo $'Owncloud domain name is the same as Gogs domain name. They must be different'
1276
+              exit 27692
1277
+          fi
1278
+      fi
1267 1279
   fi
1268 1280
 
1269 1281
   if [ $FULLBLOG_DOMAIN_NAME ]; then
@@ -1285,6 +1297,12 @@ function check_domains {
1285 1297
           echo $'Blog domain name is the same as hubzilla domain name. They must be different'
1286 1298
           exit 35483
1287 1299
       fi
1300
+      if [ $GIT_DOMAIN_NAME ]; then
1301
+          if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then
1302
+              echo $'Blog domain name is the same as Gogs domain name. They must be different'
1303
+              exit 84695
1304
+          fi
1305
+      fi
1288 1306
   fi
1289 1307
 
1290 1308
   if [ $MICROBLOG_DOMAIN_NAME ]; then
@@ -1306,6 +1324,12 @@ function check_domains {
1306 1324
           echo $'Microblog domain name is the same as hubzilla domain name. They must be different'
1307 1325
           exit 678382
1308 1326
       fi
1327
+      if [ $GIT_DOMAIN_NAME ]; then
1328
+          if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then
1329
+              echo $'Microblog domain name is the same as Gogs domain name. They must be different'
1330
+              exit 684325
1331
+          fi
1332
+      fi
1309 1333
   fi
1310 1334
 
1311 1335
   if [ $HUBZILLA_DOMAIN_NAME ]; then
@@ -1327,6 +1351,37 @@ function check_domains {
1327 1351
           echo $'Hubzilla domain name is the same as microblog domain name. They must be different'
1328 1352
           exit 83683
1329 1353
       fi
1354
+      if [ $GIT_DOMAIN_NAME ]; then
1355
+          if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then
1356
+              echo $'Hubzilla domain name is the same as Gogs domain name. They must be different'
1357
+              exit 135523
1358
+          fi
1359
+      fi
1360
+  fi
1361
+
1362
+  if [ $GIT_DOMAIN_NAME ]; then
1363
+      test_domain_name "$GIT_DOMAIN_NAME"
1364
+
1365
+      if [[ "$test_domain_name" == "$WIKI_DOMAIN_NAME" ]]; then
1366
+          echo $'Hubzilla domain name is the same as wiki domain name. They must be different'
1367
+          exit 83682
1368
+      fi
1369
+      if [[ "$test_domain_name" == "$OWNCLOUD_DOMAIN_NAME" ]]; then
1370
+          echo $'Hubzilla domain name is the same as Owncloud domain name. They must be different'
1371
+          exit 65192
1372
+      fi
1373
+      if [[ "$test_domain_name" == "$FULLBLOG_DOMAIN_NAME" ]]; then
1374
+          echo $'Hubzilla domain name is the same as blog domain name. They must be different'
1375
+          exit 74817
1376
+      fi
1377
+      if [[ "$test_domain_name" == "$MICROBLOG_DOMAIN_NAME" ]]; then
1378
+          echo $'Hubzilla domain name is the same as microblog domain name. They must be different'
1379
+          exit 83683
1380
+      fi
1381
+      if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1382
+          echo $'Microblog domain name is the same as hubzilla domain name. They must be different'
1383
+          exit 678382
1384
+      fi
1330 1385
   fi
1331 1386
 }
1332 1387