From 6f5abae53de88ffbc2cf1e81455a7ee38b11d601 Mon Sep 17 00:00:00 2001 From: Rafael Laboissière Date: Wed, 25 Jun 2025 12:50:44 +0200 Subject: Only run install-www commands on the appropriate system --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index fd57dc7..827f397 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ build-stamp: $(BUILD) .PHONY: install-www install-www: build-stamp + @[ $(shell hostname -A | cut -d\ -f1) = $(REPOHOST) ] \ + || echo "Operation aborted: not on $(REPOHOST)" \ + && false mkdir -p $(WWWDIR) chown -R '$(USER):$(USER)' $(WWWDIR) install --mode=644 www/$(INDEX) www/$(GPGKEY) $(WWWDIR) -- cgit v1.2.3