From b53b8ee9828a604219833a9953a354d97271a860 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 12 Jul 2023 14:10:44 +0000 Subject: [PATCH] feat: fugu only needs certs for mail --- fugu/acme_refresh/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fugu/acme_refresh/Makefile b/fugu/acme_refresh/Makefile index 2cea2e4..232321b 100644 --- a/fugu/acme_refresh/Makefile +++ b/fugu/acme_refresh/Makefile @@ -15,20 +15,20 @@ all: $(SMTPD_RESTART) $(DOVECOT_RELOAD) ACME_DIR=/srv/certs/acme DOMAIN=monotremata.xyz -CERT_PATH=$(ACME_DIR)/$(DOMAIN) -CERT=$(CERT_PATH)/fullchain.pem -KEY=$(CERT_PATH)/key.pem +MAIL_CERT_PATH=$(ACME_DIR)/mail.$(DOMAIN) +MAIL_CERT=$(MAIL_CERT_PATH)/fullchain.pem +MAIL_KEY=$(MAIL_CERT_PATH)/key.pem ############################################################################### SSL_PATH=/etc/ssl -CERT_DEST=$(SSL_PATH)/monotremata.xyz.fullchain.pem -KEY_DEST=$(SSL_PATH)/private/monotremata.xyz.key +CERT_DEST=$(SSL_PATH)/fullchain.pem +KEY_DEST=$(SSL_PATH)/private/key.pem -$(CERT_DEST): $(CERT) +$(CERT_DEST): $(MAIL_CERT) install -m 444 $< $@ -$(KEY_DEST): $(KEY) +$(KEY_DEST): $(MAIL_KEY) install -m 400 $< $@ ###############################################################################