feat: refresh_acme for lb

main
rilla 2023-05-30 17:37:05 +02:00
parent 42d78fc5ed
commit 10efcb8ba8
3 changed files with 31 additions and 0 deletions

20
lb/acme_refresh/Makefile Normal file
View File

@ -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
###############################################################################

7
lb/acme_refresh/justfile Executable file
View File

@ -0,0 +1,7 @@
dag := justfile_directory()
run:
make --directory "{{dag}}"
render:
make --file ../../common/render-dag.make

4
lb/acme_refresh/run.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
DAG=$(dirname "$0")
make -C "$DAG"