summaryrefslogtreecommitdiff
path: root/system-profiles/openssh/known-hosts/expiration.gup
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-12 14:12:32 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-12 14:12:32 +0100
commit679d691cd40c45399d9abae9b0f08cd228f596c5 (patch)
tree153a68a96bcc44179818a31d52f14afb12023b0b /system-profiles/openssh/known-hosts/expiration.gup
parentff32ceaae000fbc44eb54bd01fe4b7bd77995b37 (diff)
downloadnixos-679d691cd40c45399d9abae9b0f08cd228f596c5.tar
nixos-679d691cd40c45399d9abae9b0f08cd228f596c5.tar.gz
nixos-679d691cd40c45399d9abae9b0f08cd228f596c5.tar.bz2
nixos-679d691cd40c45399d9abae9b0f08cd228f596c5.tar.xz
nixos-679d691cd40c45399d9abae9b0f08cd228f596c5.zip
openssh: utc validities
Diffstat (limited to 'system-profiles/openssh/known-hosts/expiration.gup')
-rw-r--r--system-profiles/openssh/known-hosts/expiration.gup2
1 files changed, 2 insertions, 0 deletions
diff --git a/system-profiles/openssh/known-hosts/expiration.gup b/system-profiles/openssh/known-hosts/expiration.gup
index c8169262..49af61f4 100644
--- a/system-profiles/openssh/known-hosts/expiration.gup
+++ b/system-profiles/openssh/known-hosts/expiration.gup
@@ -1,6 +1,8 @@
1#!/usr/bin/env zsh 1#!/usr/bin/env zsh
2set -eu 2set -eu
3 3
4export TZ=UTC
5
4year=$(date +'%Y') 6year=$(date +'%Y')
5while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do 7while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do
6 year=$((year + 1)) 8 year=$((year + 1))