From d0f549ce22dc72f1312fe84814639f2064d15f81 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 1 Jul 2026 17:33:53 +0100 Subject: removes unneeded nginx vars in Makefiles --- nginx.mk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'nginx.mk') diff --git a/nginx.mk b/nginx.mk index a97957f..4f7e856 100644 --- a/nginx.mk +++ b/nginx.mk @@ -1,21 +1,21 @@ .PHONY: install_nginx -install_nginx: $(NGINX_CONFIG_BACKUP) $(NGINX_CONFIG) +install_nginx: /etc/nginx/nginx.joeac.net-backup /etc/nginx/nginx.conf .PHONY: reinstall_nginx -reinstall_nginx: $(NGINX_CONFIG_BACKUP) $(NGINX_CONFIG) +reinstall_nginx: /etc/nginx/nginx.joeac.net-backup /etc/nginx/nginx.conf .PHONY: uninstall_nginx uninstall_nginx: uninstall_dyndns -ifeq ($(shell test -d $(NGINX_CONFIG_BACKUP) && echo 1 || echo 0),0) +ifeq ($(shell test -d /etc/nginx/nginx.joeac.net-backup && echo 1 || echo 0),0) $(warn No nginx backup config detected: doing nothing) else - sudo mv $(NGINX_CONFIG_BACKUP) $(NGINX_CONFIG) - $(RESTART_NGINX) + sudo mv /etc/nginx/nginx.joeac.net-backup /etc/nginx/nginx.conf + sudo rc-service nginx restart endif -$(NGINX_CONFIG_BACKUP): - sudo mv $(NGINX_CONFIG) $(NGINX_CONFIG_BACKUP) +/etc/nginx/nginx.joeac.net-backup: + sudo mv /etc/nginx/nginx.conf /etc/nginx/nginx.joeac.net-backup -$(NGINX_CONFIG): $(NGINX_CONFIG_SRC) $(NGINX_CONFIG_BACKUP) +/etc/nginx/nginx.conf: nginx/nginx.conf /etc/nginx/nginx.joeac.net-backup sudo cp $< $@ - $(RESTART_NGINX) + sudo rc-service nginx restart -- cgit v1.2.3