X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=a454de0c6745bd72bcdfb4fbba417c3ded8e91cf;hb=d027bde0cf139ab8e480f0b80cfc9b67214f342d;hp=9b10e44882fcfe36853904e862f2707eee5ca1d1;hpb=127321db4ef98c2c30ce2d59b23c5e20924c1c60;p=bootmanager.git diff --git a/Makefile b/Makefile index 9b10e44..a454de0 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,12 @@ # $Id: Makefile 682 2007-07-19 09:00:25Z thierry $ # +########## make sync PLCHOST=hostname ########## make sync PLCHOST=hostname ifdef PLCHOST -PLCSSH:=root@$(PLCHOST) +ifdef VSERVER +PLCSSH:=root@$(PLCHOST):/vservers/$(VSERVER) +endif endif LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' @@ -14,11 +17,11 @@ RSYNC := rsync -a -v $(RSYNC_COND_DRY_RUN) $(RSYNC_EXCLUDES) sync: ifeq (,$(PLCSSH)) - echo "sync: You must define target host as PLCHOST on the command line" - echo " e.g. make sync PLCHOST=private.one-lab.org" ; exit 1 + echo "sync: You must define PLCHOST and VSERVER on the command line" + echo " e.g. make sync PLCHOST=private.one-lab.org VSERVER=myplc01" ; exit 1 else - +$(RSYNC) source $(PLCSSH):/plc/root/usr/share/bootmanager/ - ssh $(PLCSSH) chroot /plc/root service plc start bootmanager + +$(RSYNC) source $(PLCSSH)/usr/share/bootmanager/ + ssh root@$(PLCHOST) vserver $(VSERVER) exec service plc start bootmanager endif ##########