diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-05 21:14:23 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-05 21:14:23 +0200 |
commit | e160aae0d52b7e7d7403105e110f2e73ebedc5b7 (patch) | |
tree | 43c2085907b693fecc00628aafb2c47421e91086 /system/services/taskserver/certs/check_expire | |
parent | chore(taskserver/certs/ca.key.pem.gpg): reencrypt with new keys as recipients (diff) | |
download | nixos-server-e160aae0d52b7e7d7403105e110f2e73ebedc5b7.tar.gz nixos-server-e160aae0d52b7e7d7403105e110f2e73ebedc5b7.zip |
refactor(taskserver/certs): Format scripts and allow selecting which certs to generate
Diffstat (limited to 'system/services/taskserver/certs/check_expire')
-rwxr-xr-x | system/services/taskserver/certs/check_expire | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/system/services/taskserver/certs/check_expire b/system/services/taskserver/certs/check_expire index 89969cc..39f3291 100755 --- a/system/services/taskserver/certs/check_expire +++ b/system/services/taskserver/certs/check_expire @@ -1,4 +1,10 @@ -#!/bin/sh +#!/usr/bin/env nix +#! nix shell nixpkgs#openssl nixpkgs#dash --command dash + +cd "$(dirname "$0")" || { + echo "No dir name?!" + exit 1 +} for cert in *.cert.pem; do echo "$cert" |