reformat ddns script
This commit is contained in:
parent
2bfb0295e6
commit
d9ea10c456
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ let
|
|||
serviceConfig.Type = "oneshot";
|
||||
script = ''
|
||||
function url() {
|
||||
echo "https://svc.joker.com/nic/update?username=$1&password=$2&hostname=$3"
|
||||
echo "https://svc.joker.com/nic/update?username=$1&password=$2&hostname=$3"
|
||||
}
|
||||
|
||||
IFS=':'
|
||||
|
@ -24,7 +24,7 @@ let
|
|||
|
||||
curl_url=$(url "$user" "$password" ${hostname})
|
||||
|
||||
#${pkgs.curl}/bin/curl -4 "$curl_url"
|
||||
${pkgs.curl}/bin/curl -4 "$curl_url"
|
||||
${pkgs.curl}/bin/curl -6 "$curl_url"
|
||||
'';
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue