From b59888dc9988a159459262bef3e4b5b8593042bc Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 3 Jul 2026 15:50:14 +0100 Subject: [PATCH] splits sudo to avoid env confusion --- make/nginx.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/nginx.mk b/make/nginx.mk index 4e49600..2e7e9a4 100644 --- a/make/nginx.mk +++ b/make/nginx.mk @@ -33,7 +33,8 @@ endef define nginx_module_config_rule = /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf: $(nginx_module_config_template) /etc/nginx/http.d /etc/nginx/nginx.conf - sudo $(nginx_module_config_template_args) envsubst -i $$< -o $$@ + $(nginx_module_config_template_args) envsubst -i $$< -o $$(notdir $$@).tmp + sudo cp $$(notdir $$@).tmp $$@ sudo rc-service nginx restart endef