Add a resolver
This commit adds a resolver to the toplevel Distillery domain, to allow resolving domains globally.
This commit is contained in:
parent
eee3d95351
commit
45ee6b665e
11 changed files with 129 additions and 7 deletions
|
|
@ -36,8 +36,12 @@ SLUG="$1"
|
|||
|
||||
# Compute the domain name for this instance.
|
||||
# Also lowercase the domain name for consistency.
|
||||
INSTANCE_DOMAIN="$SLUG.$DEFAULT_DOMAIN"
|
||||
INSTANCE_DOMAIN="$(echo "$INSTANCE_DOMAIN" | tr '[:upper:]' '[:lower:]')"
|
||||
function compute_instance_domain() {
|
||||
INSTANCE_DOMAIN="$1.$DEFAULT_DOMAIN"
|
||||
INSTANCE_DOMAIN="$(echo "$INSTANCE_DOMAIN" | tr '[:upper:]' '[:lower:]')"
|
||||
echo "$INSTANCE_DOMAIN"
|
||||
}
|
||||
INSTANCE_DOMAIN="$(compute_instance_domain "$SLUG")"
|
||||
|
||||
# Next we need a username base.
|
||||
# This will be used as a username across the system (linux), MySQL and GraphDB.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue