From 00f332f21a784d574782a2dd97e7dce39713724c Mon Sep 17 00:00:00 2001 From: rilla Date: Tue, 30 May 2023 18:07:49 +0200 Subject: [PATCH] feat: lb should reload nginx after updating certificates --- lb/acme_refresh/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lb/acme_refresh/Makefile b/lb/acme_refresh/Makefile index 73f43c2..4751a67 100644 --- a/lb/acme_refresh/Makefile +++ b/lb/acme_refresh/Makefile @@ -11,8 +11,21 @@ KEY=$(CERT_PATH)/$(DOMAIN).key APKOVL=/media/mmcblk0p2/lb.apkovl.tar.gz +NGINX_RELOAD=$(WD)/nginx_reload + ############################################################################### +.PHONY: all + +all: $(NGINX_RELOAD) $(APKOVL) + +############################################################################### + +$(NGINX_RELOAD): $(FULLCHAIN) $(CERT) $(KEY) + mkdir -p $(@) + nginx -s reload + touch $@ + $(APKOVL): $(FULLCHAIN) $(CERT) $(KEY) lbu add $(CERT_PATH) lbu commit