diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-03 17:29:55 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-03 17:29:55 +0100 |
commit | d650b72c0f71142426106db4dd71b2e7c7c413a5 (patch) | |
tree | ffb06a5ace40aa902dfc9e2834c423bfb4447fee /hosts/surtr/tls/tsig_key.gup | |
parent | 27a172993d78bf736ab1e5a14a7a5525f4866235 (diff) | |
download | nixos-d650b72c0f71142426106db4dd71b2e7c7c413a5.tar nixos-d650b72c0f71142426106db4dd71b2e7c7c413a5.tar.gz nixos-d650b72c0f71142426106db4dd71b2e7c7c413a5.tar.bz2 nixos-d650b72c0f71142426106db4dd71b2e7c7c413a5.tar.xz nixos-d650b72c0f71142426106db4dd71b2e7c7c413a5.zip |
immich
Diffstat (limited to 'hosts/surtr/tls/tsig_key.gup')
-rw-r--r-- | hosts/surtr/tls/tsig_key.gup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/surtr/tls/tsig_key.gup b/hosts/surtr/tls/tsig_key.gup index 3d81b603..825479e5 100644 --- a/hosts/surtr/tls/tsig_key.gup +++ b/hosts/surtr/tls/tsig_key.gup | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
2 | 2 | ||
3 | keyFile=../dns/keys/${2:t}_acme.yaml | 3 | keyFile=../dns/keys/${2:t}_acme |
4 | gup -u $keyFile | 4 | gup -u $keyFile |
5 | sops -d --input-type=binary --output-type=binary ${keyFile} | yq -r '.key[0].secret' > $1 | 5 | sops -d --input-type=binary --output-type=binary ${keyFile} | yq -r '.key[0].secret' > $1 |
6 | sops -p '7ED22F4AA7BB55728B643DC5471B7D88E4EF66F8,30D3453B8CD02FE2A3E7C78C0FB536FB87AE8F51' --input-type=binary -e -i $1 \ No newline at end of file | 6 | sops -p '7ED22F4AA7BB55728B643DC5471B7D88E4EF66F8,30D3453B8CD02FE2A3E7C78C0FB536FB87AE8F51' --input-type=binary -e -i $1 |