Fixing minor bugs
This commit is contained in:
parent
e6b7addca3
commit
fa4bc831c5
|
@ -1417,22 +1417,22 @@ function set_default_onion_domains {
|
|||
return
|
||||
fi
|
||||
|
||||
if [ $OWNCLOUD_DOMAIN_NAME ]; then
|
||||
if [ ${#OWNCLOUD_DOMAIN_NAME} -gt 1 ]; then
|
||||
OWNCLOUD_DOMAIN_NAME='owncloud.local'
|
||||
fi
|
||||
if [ $MICROBLOG_DOMAIN_NAME ]; then
|
||||
if [ ${#MICROBLOG_DOMAIN_NAME} -gt 1 ]; then
|
||||
MICROBLOG_DOMAIN_NAME='microblog.local'
|
||||
fi
|
||||
if [ $FULLBLOG_DOMAIN_NAME ]; then
|
||||
if [ ${#FULLBLOG_DOMAIN_NAME} -gt 1 ]; then
|
||||
FULLBLOG_DOMAIN_NAME='blog.local'
|
||||
fi
|
||||
if [ $WIKI_DOMAIN_NAME ]; then
|
||||
if [ ${#WIKI_DOMAIN_NAME} -gt 1 ]; then
|
||||
WIKI_DOMAIN_NAME='wiki.local'
|
||||
fi
|
||||
if [ $DEFAULT_DOMAIN_NAME ]; then
|
||||
if [ ${#DEFAULT_DOMAIN_NAME} -gt 1 ]; then
|
||||
DEFAULT_DOMAIN_NAME="${PROJECT_NAME}.local"
|
||||
fi
|
||||
if [ $GIT_DOMAIN_NAME ]; then
|
||||
if [ ${#GIT_DOMAIN_NAME} -gt 1 ]; then
|
||||
GIT_DOMAIN_NAME='git.local'
|
||||
fi
|
||||
}
|
||||
|
@ -1652,7 +1652,7 @@ function test_domain_name {
|
|||
|
||||
# check that domain names are sensible
|
||||
function check_domains {
|
||||
if [ $WIKI_DOMAIN_NAME ]; then
|
||||
if [ ${#WIKI_DOMAIN_NAME} -gt 1 ]; then
|
||||
test_domain_name "$WIKI_DOMAIN_NAME"
|
||||
|
||||
if [[ "$test_domain_name" == "$OWNCLOUD_DOMAIN_NAME" ]]; then
|
||||
|
@ -1671,7 +1671,7 @@ 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 [ ${#GIT_DOMAIN_NAME} -gt 1 ]; 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
|
||||
|
@ -1679,7 +1679,7 @@ function check_domains {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ $OWNCLOUD_DOMAIN_NAME ]; then
|
||||
if [ ${#OWNCLOUD_DOMAIN_NAME} -gt 1 ]; then
|
||||
test_domain_name "$OWNCLOUD_DOMAIN_NAME"
|
||||
|
||||
if [[ "$test_domain_name" == "$WIKI_DOMAIN_NAME" ]]; then
|
||||
|
@ -1706,7 +1706,7 @@ function check_domains {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ $FULLBLOG_DOMAIN_NAME ]; then
|
||||
if [ ${#FULLBLOG_DOMAIN_NAME} -gt 1 ]; then
|
||||
test_domain_name "$FULLBLOG_DOMAIN_NAME"
|
||||
|
||||
if [[ "$test_domain_name" == "$WIKI_DOMAIN_NAME" ]]; then
|
||||
|
@ -1733,7 +1733,7 @@ function check_domains {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ $MICROBLOG_DOMAIN_NAME ]; then
|
||||
if [ ${#MICROBLOG_DOMAIN_NAME} -gt 1 ]; then
|
||||
test_domain_name "$MICROBLOG_DOMAIN_NAME"
|
||||
|
||||
if [[ "$test_domain_name" == "$WIKI_DOMAIN_NAME" ]]; then
|
||||
|
@ -1779,7 +1779,7 @@ 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 [ ${#GIT_DOMAIN_NAME} -gt 1 ]; 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
|
||||
|
@ -1787,7 +1787,7 @@ function check_domains {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ $GIT_DOMAIN_NAME ]; then
|
||||
if [ ${#GIT_DOMAIN_NAME} -gt 1 ]; then
|
||||
test_domain_name "$GIT_DOMAIN_NAME"
|
||||
|
||||
if [[ "$test_domain_name" == "$WIKI_DOMAIN_NAME" ]]; then
|
||||
|
|
Loading…
Reference in New Issue