aboutsummaryrefslogtreecommitdiff
path: root/content/blog
diff options
context:
space:
mode:
authorJulien Dessaux2023-11-28 21:08:12 +0100
committerJulien Dessaux2023-11-28 21:15:22 +0100
commitb9d639ebb92222c0959bef09936fdc6faf7b1ef2 (patch)
tree0e902537fe0d4fb65d7ffa15884726c6f37e92b7 /content/blog
parentAdded managing multiple nixos hosts remotely blog article (diff)
downloadwww-b9d639ebb92222c0959bef09936fdc6faf7b1ef2.tar.gz
www-b9d639ebb92222c0959bef09936fdc6faf7b1ef2.tar.bz2
www-b9d639ebb92222c0959bef09936fdc6faf7b1ef2.zip
typo and makefile error
Diffstat (limited to 'content/blog')
-rw-r--r--content/blog/nix/managing-multiple-servers.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/content/blog/nix/managing-multiple-servers.md b/content/blog/nix/managing-multiple-servers.md
index e52debf..7d77991 100644
--- a/content/blog/nix/managing-multiple-servers.md
+++ b/content/blog/nix/managing-multiple-servers.md
@@ -147,7 +147,7 @@ run: mandatory-host-param ## make run host=<hostname>
.PHONY: update
update: ## make update
- nixos-channel --update
+ nix-channel --update
##### UTILS ####################################################################
.PHONY: help
@@ -157,10 +157,11 @@ help:
.PHONY: mandatory-host-param
mandatory-host-param:
ifndef host
- $(error host is not set)
-endif
+ @echo "Error: host parameter is not set"; exit 1
+else
ifeq ($(wildcard hosts/$(host)), )
- $(error host has no configuration in hosts/$(host))
+ @echo "Error: host has no configuration in ./hosts/$(host)"; exit 1
+endif
endif
```