make deploy: use whatsupnix if it exists
This commit is contained in:
parent
a74be81827
commit
ea468604d3
7
Makefile
7
Makefile
@ -83,7 +83,12 @@ deploy:
|
|||||||
$(MAKE) populate debug=false
|
$(MAKE) populate debug=false
|
||||||
$(ssh) $(target_user)@$(target_host) -p $(target_port) \
|
$(ssh) $(target_user)@$(target_host) -p $(target_port) \
|
||||||
env STOCKHOLM_VERSION="$$STOCKHOLM_VERSION" \
|
env STOCKHOLM_VERSION="$$STOCKHOLM_VERSION" \
|
||||||
nixos-rebuild $(rebuild-command) --show-trace -I $(target_path)
|
nixos-rebuild -Q $(rebuild-command) --show-trace -I $(target_path) \
|
||||||
|
|& if type whatsupnix 2>/dev/null; then \
|
||||||
|
whatsupnix $(target_user)@$(target_host):$(target_port); \
|
||||||
|
else \
|
||||||
|
cat; \
|
||||||
|
fi
|
||||||
|
|
||||||
# usage: make populate system=foo
|
# usage: make populate system=foo
|
||||||
populate: populate-target = \
|
populate: populate-target = \
|
||||||
|
Loading…
Reference in New Issue
Block a user