feat: lb should reload nginx after updating certificates
parent
817d265a33
commit
00f332f21a
|
@ -11,8 +11,21 @@ KEY=$(CERT_PATH)/$(DOMAIN).key
|
||||||
|
|
||||||
APKOVL=/media/mmcblk0p2/lb.apkovl.tar.gz
|
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)
|
$(APKOVL): $(FULLCHAIN) $(CERT) $(KEY)
|
||||||
lbu add $(CERT_PATH)
|
lbu add $(CERT_PATH)
|
||||||
lbu commit
|
lbu commit
|
||||||
|
|
Loading…
Reference in New Issue