mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
final fixes for the day
This commit is contained in:
parent
59f9bafd30
commit
b0b2ed8fb0
4 changed files with 8 additions and 20 deletions
|
|
@ -80,7 +80,7 @@ let
|
|||
|
||||
kat-splash = self.callPackage ./kat-splash { };
|
||||
|
||||
kat-glauca-dns = self.callPackage ./kat-glauca-dns { };
|
||||
kat-website = self.callPackage ./kat-website { };
|
||||
|
||||
kat-gpg-status = self.callPackage ./kat-gpg-status { };
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
{ pkgs, curl, coreutils, writeShellScriptBin }:
|
||||
|
||||
writeShellScriptBin "kat-glauca-dns" ''
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
ip4=$(${curl}/bin/curl -s --ipv4 https://dns.glauca.digital/checkip)
|
||||
ip6=$(${curl}/bin/curl -s --ipv6 https://dns.glauca.digital/checkip)
|
||||
source $passFile
|
||||
echo "$ip4, $ip6"
|
||||
${curl}/bin/curl -u ''${user}:''${pass} --data-urlencode "hostname=''${hostname}" --data-urlencode "myip=''${ip4}" "https://dns.glauca.digital/nic/update"
|
||||
echo ""
|
||||
${curl}/bin/curl -u ''${user}:''${pass} --data-urlencode "hostname=''${hostname}" --data-urlencode "myip=''${ip6}" "https://dns.glauca.digital/nic/update"
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue