From 355184a0ea8eb626505b753c6f3ff78507a660ff Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 19 May 2014 16:07:28 +0200 Subject: [PATCH] enable make sync to restart nm only conditionnally --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78e93b7..e52e2e9 100644 --- a/Makefile +++ b/Makefile @@ -137,6 +137,9 @@ endif # keep this in sync with setup-vs.spec LXC_EXCLUDES= --exclude sliver_vs.py --exclude coresched_vs.py +# run with make SYNC_RESTART=false if you want to skip restarting nm +SYNC_RESTART=true + sync:synclxc synclxc: $(NODE).key.rsa @@ -151,7 +154,7 @@ else +$(RSYNC) $(LXC_EXCLUDES) --delete-excluded ./ $(NODEURL)/usr/share/NodeManager/ # +$(RSYNC) ./initscripts/ $(NODEURL)/etc/init.d/ +$(RSYNC) ./systemd/ $(NODEURL)/usr/lib/systemd/system/ -# ssh -i $(NODE).key.rsa root@$(NODE) service nm restart + -$(SYNC_RESTART) && { ssh -i $(NODE).key.rsa root@$(NODE) service nm restart ; } ||: endif ### fetching the key -- 2.43.0