From d9ea10c4562e50bfbcfb12ea7d6ba4ec22318845 Mon Sep 17 00:00:00 2001 From: dadada Date: Sun, 29 May 2022 13:47:57 +0200 Subject: [PATCH] reformat ddns script --- nixos/modules/ddns.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/ddns.nix b/nixos/modules/ddns.nix index 7a45ff3..9247fb8 100644 --- a/nixos/modules/ddns.nix +++ b/nixos/modules/ddns.nix @@ -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" ''; }));