summary refs log tree commit diff stats
path: root/system/services/taskserver/certs/check_expire
diff options
context:
space:
mode:
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"