From fc81fd4519258b51659100d2ced1c9cce98510eb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Dec 2015 17:52:42 +0000 Subject: [PATCH] Check that gogs domain differs from others --- src/freedombone | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/src/freedombone b/src/freedombone index d1888698..a2f5b6c6 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1243,6 +1243,12 @@ function check_domains { echo $'Wiki domain name is the same as hubzilla domain name. They must be different' exit 65848 fi + if [ $GIT_DOMAIN_NAME ]; then + if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then + echo $'Wiki domain name is the same as Gogs domain name. They must be different' + exit 73529 + fi + fi fi if [ $OWNCLOUD_DOMAIN_NAME ]; then @@ -1264,6 +1270,12 @@ function check_domains { echo $'Owncloud domain name is the same as hubzilla domain name. They must be different' exit 68365 fi + if [ $GIT_DOMAIN_NAME ]; then + if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then + echo $'Owncloud domain name is the same as Gogs domain name. They must be different' + exit 27692 + fi + fi fi if [ $FULLBLOG_DOMAIN_NAME ]; then @@ -1285,6 +1297,12 @@ function check_domains { echo $'Blog domain name is the same as hubzilla domain name. They must be different' exit 35483 fi + if [ $GIT_DOMAIN_NAME ]; then + if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then + echo $'Blog domain name is the same as Gogs domain name. They must be different' + exit 84695 + fi + fi fi if [ $MICROBLOG_DOMAIN_NAME ]; then @@ -1306,6 +1324,12 @@ function check_domains { echo $'Microblog domain name is the same as hubzilla domain name. They must be different' exit 678382 fi + if [ $GIT_DOMAIN_NAME ]; then + if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then + echo $'Microblog domain name is the same as Gogs domain name. They must be different' + exit 684325 + fi + fi fi if [ $HUBZILLA_DOMAIN_NAME ]; then @@ -1327,6 +1351,37 @@ function check_domains { echo $'Hubzilla domain name is the same as microblog domain name. They must be different' exit 83683 fi + if [ $GIT_DOMAIN_NAME ]; then + if [[ "$test_domain_name" == "$GIT_DOMAIN_NAME" ]]; then + echo $'Hubzilla domain name is the same as Gogs domain name. They must be different' + exit 135523 + fi + fi + fi + + if [ $GIT_DOMAIN_NAME ]; then + test_domain_name "$GIT_DOMAIN_NAME" + + if [[ "$test_domain_name" == "$WIKI_DOMAIN_NAME" ]]; then + echo $'Hubzilla domain name is the same as wiki domain name. They must be different' + exit 83682 + fi + if [[ "$test_domain_name" == "$OWNCLOUD_DOMAIN_NAME" ]]; then + echo $'Hubzilla domain name is the same as Owncloud domain name. They must be different' + exit 65192 + fi + if [[ "$test_domain_name" == "$FULLBLOG_DOMAIN_NAME" ]]; then + echo $'Hubzilla domain name is the same as blog domain name. They must be different' + exit 74817 + fi + if [[ "$test_domain_name" == "$MICROBLOG_DOMAIN_NAME" ]]; then + echo $'Hubzilla domain name is the same as microblog domain name. They must be different' + exit 83683 + fi + if [[ "$test_domain_name" == "$HUBZILLA_DOMAIN_NAME" ]]; then + echo $'Microblog domain name is the same as hubzilla domain name. They must be different' + exit 678382 + fi fi }