diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-03 15:50:14 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-03 15:50:14 +0100 |
| commit | b59888dc9988a159459262bef3e4b5b8593042bc (patch) | |
| tree | 4e790650ff15e62f153f3746e1cf01c617272098 | |
| parent | d29e120c72de2c2a9a497bf9589ff985d1d247ef (diff) | |
splits sudo to avoid env confusion
| -rw-r--r-- | make/nginx.mk | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
