Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b9256a1b
Commit
b9256a1b
authored
Aug 21, 2022
by
AlvinSchiller
Browse files
changed from *deployconf to *domainconf
parent
734c9a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_selfhost.sh
View file @
b9256a1b
...
...
@@ -17,10 +17,10 @@ dns_selfhost_add() {
SELFHOSTDNS_USERNAME
=
"
${
SELFHOSTDNS_USERNAME
:-
$(
_readaccountconf_mutable SELFHOSTDNS_USERNAME
)
}
"
SELFHOSTDNS_PASSWORD
=
"
${
SELFHOSTDNS_PASSWORD
:-
$(
_readaccountconf_mutable SELFHOSTDNS_PASSWORD
)
}
"
# These values are domain dependent, so read them from there
_getdeploy
conf SELFHOSTDNS_MAP
_getdeploy
conf SELFHOSTDNS_RID
_getdeploy
conf SELFHOSTDNS_RID2
_getdeploy
conf SELFHOSTDNS_LAST_SLOT
SELFHOSTDNS_MAP
=
"
${
SELFHOSTDNS_MAP
:-
$(
_readdomain
conf SELFHOSTDNS_MAP
)
}
"
SELFHOSTDNS_RID
=
"
${
SELFHOSTDNS_RID
:-
$(
_readdomain
conf SELFHOSTDNS_RID
)
}
"
SELFHOSTDNS_RID2
=
"
${
SELFHOSTDNS_RID2
:-
$(
_readdomain
conf SELFHOSTDNS_RID2
)
}
"
SELFHOSTDNS_LAST_SLOT
=
"
${
SELFHOSTDNS_LAST_SLOT
:-
$(
_readdomain
conf SELFHOSTDNS_LAST_SLOT
)
}
"
if
[
-z
"
${
SELFHOSTDNS_USERNAME
:-}
"
]
||
[
-z
"
${
SELFHOSTDNS_PASSWORD
:-}
"
]
;
then
_err
"SELFHOSTDNS_USERNAME and SELFHOSTDNS_PASSWORD must be set"
...
...
@@ -67,10 +67,10 @@ dns_selfhost_add() {
_saveaccountconf_mutable SELFHOSTDNS_USERNAME
"
$SELFHOSTDNS_USERNAME
"
_saveaccountconf_mutable SELFHOSTDNS_PASSWORD
"
$SELFHOSTDNS_PASSWORD
"
# These values are domain dependent, so store them there
_saved
eploy
conf SELFHOSTDNS_MAP
"
$SELFHOSTDNS_MAP
"
_saved
eploy
conf SELFHOSTDNS_RID
"
$SELFHOSTDNS_RID
"
_saved
eploy
conf SELFHOSTDNS_RID2
"
$SELFHOSTDNS_RID2
"
_saved
eploy
conf SELFHOSTDNS_LAST_SLOT
"
$SELFHOSTDNS_LAST_SLOT
"
_saved
omain
conf SELFHOSTDNS_MAP
"
$SELFHOSTDNS_MAP
"
_saved
omain
conf SELFHOSTDNS_RID
"
$SELFHOSTDNS_RID
"
_saved
omain
conf SELFHOSTDNS_RID2
"
$SELFHOSTDNS_RID2
"
_saved
omain
conf SELFHOSTDNS_LAST_SLOT
"
$SELFHOSTDNS_LAST_SLOT
"
}
dns_selfhost_rm
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment