summary refs log tree commit diff stats
path: root/system/services/taskserver/certs/check_expire
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-05 21:14:23 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-05 21:14:23 +0200
commite160aae0d52b7e7d7403105e110f2e73ebedc5b7 (patch)
tree43c2085907b693fecc00628aafb2c47421e91086 /system/services/taskserver/certs/check_expire
parentchore(taskserver/certs/ca.key.pem.gpg): reencrypt with new keys as recipients (diff)
downloadnixos-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-xsystem/services/taskserver/certs/check_expire8
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"