Browse Source

Spaceship: fix domain conf

pull/6306/head
Meo597 2 weeks ago
parent
commit
e1d447847f
  1. 6
      dnsapi/dns_spaceship.sh

6
dnsapi/dns_spaceship.sh

@ -133,11 +133,11 @@ _get_root() {
domain="$1" domain="$1"
# Check manual override # Check manual override
SPACESHIP_ROOT_DOMAIN="${SPACESHIP_ROOT_DOMAIN:-$(_readaccountconf_mutable SPACESHIP_ROOT_DOMAIN)}"
SPACESHIP_ROOT_DOMAIN="${SPACESHIP_ROOT_DOMAIN:-$(_readdomainconf SPACESHIP_ROOT_DOMAIN)}"
if [ -n "$SPACESHIP_ROOT_DOMAIN" ]; then if [ -n "$SPACESHIP_ROOT_DOMAIN" ]; then
_domain="$SPACESHIP_ROOT_DOMAIN" _domain="$SPACESHIP_ROOT_DOMAIN"
_debug "Using manually specified or saved root domain: $_domain" _debug "Using manually specified or saved root domain: $_domain"
_saveaccountconf_mutable SPACESHIP_ROOT_DOMAIN "$SPACESHIP_ROOT_DOMAIN"
_savedomainconf SPACESHIP_ROOT_DOMAIN "$SPACESHIP_ROOT_DOMAIN"
return 0 return 0
fi fi
@ -162,7 +162,7 @@ _get_root() {
_debug "Root zone found: '$_domain'" _debug "Root zone found: '$_domain'"
# Save the detected root domain # Save the detected root domain
_saveaccountconf_mutable SPACESHIP_ROOT_DOMAIN "$_domain"
_savedomainconf SPACESHIP_ROOT_DOMAIN "$_domain"
_info "Root domain '$_domain' saved to configuration for future use." _info "Root domain '$_domain' saved to configuration for future use."
return 0 return 0

Loading…
Cancel
Save