diff options
author | tv <tv@krebsco.de> | 2017-06-15 19:57:54 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-15 19:57:57 +0200 |
commit | ea468604d36257d182580d689035379b7ff8d78e (patch) | |
tree | d7b5478c0c49061a904f92cf29ffd1658213c762 /Makefile | |
parent | a74be81827b4cd70f738633de03f56c9349484f3 (diff) |
make deploy: use whatsupnix if it exists
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -83,7 +83,12 @@ deploy: $(MAKE) populate debug=false $(ssh) $(target_user)@$(target_host) -p $(target_port) \ 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 populate: populate-target = \ |