From 10efcb8ba81a84ec4a5802734ec7886f684f81fc Mon Sep 17 00:00:00 2001 From: rilla Date: Tue, 30 May 2023 17:37:05 +0200 Subject: [PATCH] feat: refresh_acme for lb --- lb/acme_refresh/Makefile | 20 ++++++++++++++++++++ lb/acme_refresh/justfile | 7 +++++++ lb/acme_refresh/run.sh | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 lb/acme_refresh/Makefile create mode 100755 lb/acme_refresh/justfile create mode 100755 lb/acme_refresh/run.sh diff --git a/lb/acme_refresh/Makefile b/lb/acme_refresh/Makefile new file mode 100644 index 0000000..73f43c2 --- /dev/null +++ b/lb/acme_refresh/Makefile @@ -0,0 +1,20 @@ +WD=/var/lib/dags/acme_refresh + +############################################################################### + +ACME_DIR=/srv/certs/acme +DOMAIN=monotremata.xyz +CERT_PATH=$(ACME_DIR)/$(DOMAIN) +FULLCHAIN=$(CERT_PATH)/fullchain.cer +CERT=$(CERT_PATH)/$(DOMAIN).cer +KEY=$(CERT_PATH)/$(DOMAIN).key + +APKOVL=/media/mmcblk0p2/lb.apkovl.tar.gz + +############################################################################### + +$(APKOVL): $(FULLCHAIN) $(CERT) $(KEY) + lbu add $(CERT_PATH) + lbu commit + +############################################################################### diff --git a/lb/acme_refresh/justfile b/lb/acme_refresh/justfile new file mode 100755 index 0000000..457936e --- /dev/null +++ b/lb/acme_refresh/justfile @@ -0,0 +1,7 @@ +dag := justfile_directory() + +run: + make --directory "{{dag}}" + +render: + make --file ../../common/render-dag.make diff --git a/lb/acme_refresh/run.sh b/lb/acme_refresh/run.sh new file mode 100755 index 0000000..09c0c63 --- /dev/null +++ b/lb/acme_refresh/run.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +DAG=$(dirname "$0") +make -C "$DAG"