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
243593cd
Unverified
Commit
243593cd
authored
Nov 14, 2016
by
Philippe Kueck
Browse files
fix warnings and remove unused ${tmp} variable
parent
54d61bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nsupdate.sh
View file @
243593cd
...
...
@@ -13,16 +13,15 @@ dns_nsupdate_add() {
_saveaccountconf NSUPDATE_SERVER
"
${
NSUPDATE_SERVER
}
"
_saveaccountconf NSUPDATE_KEY
"
${
NSUPDATE_KEY
}
"
_info
"adding
${
fulldomain
}
. 60 in txt
\"
${
txtvalue
}
\"
"
nsupdate
-k
${
NSUPDATE_KEY
}
<<
EOF
nsupdate
-k
"
${
NSUPDATE_KEY
}
"
<<
EOF
server
${
NSUPDATE_SERVER
}
update add
${
fulldomain
}
. 60 in txt "
${
txtvalue
}
"
send
EOF
if
[
$?
-ne
0
]
;
then
_err
"error updating domain
, see
${
tmp
}
for details
"
_err
"error updating domain"
return
1
fi
rm
-f
${
tmp
}
return
0
}
...
...
@@ -33,16 +32,15 @@ dns_nsupdate_rm() {
_checkKeyFile
||
return
1
[
-n
"
${
NSUPDATE_SERVER
}
"
]
||
NSUPDATE_SERVER
=
"localhost"
_info
"removing
${
fulldomain
}
. txt"
nsupdate
-k
${
NSUPDATE_KEY
}
<<
EOF
nsupdate
-k
"
${
NSUPDATE_KEY
}
"
<<
EOF
server
${
NSUPDATE_SERVER
}
update delete
${
fulldomain
}
. txt
send
EOF
if
[
$?
-ne
0
]
;
then
_err
"error updating domain
, see
${
tmp
}
for details
"
_err
"error updating domain"
return
1
fi
rm
-f
${
tmp
}
return
0
}
...
...
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