Browse Source

Hubzilla switch

Bob Mottram 9 years ago
parent
commit
4c0b28a358
1 changed files with 50 additions and 34 deletions
  1. 50
    34
      src/freedombone

+ 50
- 34
src/freedombone View File

@@ -1084,13 +1084,16 @@ function check_domains {
1084 1084
           echo 'Wiki domain name is the same as microblog domain name. They must be different'
1085 1085
           exit 36827
1086 1086
       fi
1087
-      if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1088
-          echo 'Wiki domain name is the same as redmatrix domain name. They must be different'
1089
-          exit 93637
1090
-      fi
1091
-      if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1092
-          echo 'Wiki domain name is the same as hubzilla domain name. They must be different'
1093
-          exit 65848
1087
+      if [[ $ENABLE_HUBZILLA == "no" ]]; then
1088
+          if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1089
+              echo 'Wiki domain name is the same as redmatrix domain name. They must be different'
1090
+              exit 93637
1091
+          fi
1092
+      else
1093
+          if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1094
+              echo 'Wiki domain name is the same as hubzilla domain name. They must be different'
1095
+              exit 65848
1096
+          fi
1094 1097
       fi
1095 1098
   fi
1096 1099
 
@@ -1109,13 +1112,16 @@ function check_domains {
1109 1112
           echo 'Owncloud domain name is the same as microblog domain name. They must be different'
1110 1113
           exit 36896
1111 1114
       fi
1112
-      if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1113
-          echo 'Owncloud domain name is the same as redmatrix domain name. They must be different'
1114
-          exit 79362
1115
-      fi
1116
-      if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1117
-          echo 'Owncloud domain name is the same as hubzilla domain name. They must be different'
1118
-          exit 68365
1115
+      if [[ $ENABLE_HUBZILLA == "no" ]]; then
1116
+          if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1117
+              echo 'Owncloud domain name is the same as redmatrix domain name. They must be different'
1118
+              exit 79362
1119
+          fi
1120
+      else
1121
+          if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1122
+              echo 'Owncloud domain name is the same as hubzilla domain name. They must be different'
1123
+              exit 68365
1124
+          fi
1119 1125
       fi
1120 1126
   fi
1121 1127
 
@@ -1134,13 +1140,16 @@ function check_domains {
1134 1140
           echo 'Blog domain name is the same as microblog domain name. They must be different'
1135 1141
           exit 38236
1136 1142
       fi
1137
-      if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1138
-          echo 'Blog domain name is the same as redmatrix domain name. They must be different'
1139
-          exit 36813
1140
-      fi
1141
-      if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1142
-          echo 'Blog domain name is the same as hubzilla domain name. They must be different'
1143
-          exit 35483
1143
+      if [[ $ENABLE_HUBZILLA == "no" ]]; then
1144
+          if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1145
+              echo 'Blog domain name is the same as redmatrix domain name. They must be different'
1146
+              exit 36813
1147
+          fi
1148
+      else
1149
+          if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1150
+              echo 'Blog domain name is the same as hubzilla domain name. They must be different'
1151
+              exit 35483
1152
+          fi
1144 1153
       fi
1145 1154
   fi
1146 1155
 
@@ -1159,13 +1168,16 @@ function check_domains {
1159 1168
           echo 'Microblog domain name is the same as blog domain name. They must be different'
1160 1169
           exit 26832
1161 1170
       fi
1162
-      if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1163
-          echo 'Microblog domain name is the same as redmatrix domain name. They must be different'
1164
-          exit 36373
1165
-      fi
1166
-      if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1167
-          echo 'Microblog domain name is the same as hubzilla domain name. They must be different'
1168
-          exit 678382
1171
+      if [[ $ENABLE_HUBZILLA == "no" ]]; then
1172
+          if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1173
+              echo 'Microblog domain name is the same as redmatrix domain name. They must be different'
1174
+              exit 36373
1175
+          fi
1176
+      else
1177
+          if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1178
+              echo 'Microblog domain name is the same as hubzilla domain name. They must be different'
1179
+              exit 678382
1180
+          fi
1169 1181
       fi
1170 1182
   fi
1171 1183
 
@@ -1188,9 +1200,11 @@ function check_domains {
1188 1200
           echo 'RedMatrix domain name is the same as microblog domain name. They must be different'
1189 1201
           exit 83683
1190 1202
       fi
1191
-      if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1192
-          echo 'RedMatrix domain name is the same as hubzilla domain name. They must be different'
1193
-          exit 82672
1203
+      if [[ $ENABLE_HUBZILLA != "no" ]]; then
1204
+          if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then
1205
+              echo 'RedMatrix domain name is the same as hubzilla domain name. They must be different'
1206
+              exit 82672
1207
+          fi
1194 1208
       fi
1195 1209
   fi
1196 1210
 
@@ -1213,9 +1227,11 @@ function check_domains {
1213 1227
           echo 'RedMatrix domain name is the same as microblog domain name. They must be different'
1214 1228
           exit 83683
1215 1229
       fi
1216
-      if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1217
-          echo 'RedMatrix domain name is the same as redmatrix domain name. They must be different'
1218
-          exit 82672
1230
+      if [[ $ENABLE_HUBZILLA == "no" ]]; then
1231
+          if [[ "$test_domain_name" == "$REDMATRIX_DOMAIN_NAME" ]]; then
1232
+              echo 'RedMatrix domain name is the same as redmatrix domain name. They must be different'
1233
+              exit 82672
1234
+          fi
1219 1235
       fi
1220 1236
   fi
1221 1237
 }