aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissière <rafael@laboissiere.net>2025-06-25 12:50:44 +0200
committerRafael Laboissière <rafael@laboissiere.net>2025-06-25 12:50:44 +0200
commit6f5abae53de88ffbc2cf1e81455a7ee38b11d601 (patch)
tree7350af4431897c7162b0ff78a13a753aabf5ce10
parentbb7d647de14edd62636990337e76680a57cc7c59 (diff)
Only run install-www commands on the appropriate system
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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)