From e160aae0d52b7e7d7403105e110f2e73ebedc5b7 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 5 Oct 2024 21:14:23 +0200 Subject: refactor(taskserver/certs): Format scripts and allow selecting which certs to generate --- system/services/taskserver/certs/check_expire | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'system/services/taskserver/certs/check_expire') 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" -- cgit 1.4.1