X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=1280862f00c6d4d0f9ff08f1423816f409392167;hb=a71a8f96fb0ace92a47bc0ea826a31f1c0557561;hp=9f819f44d83da733d31d5c4ef5e251ba3d5a2b5a;hpb=391310e122de0536c08f62bd46acd3b3b7b13964;p=myplc.git diff --git a/Makefile b/Makefile index 9f819f4..1280862 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,18 @@ # -# $Id: Makefile 1078 2007-11-15 13:38:27Z thierry $ +# $Id$ # -BINARIES = plc-config plc-config-tty db-config dns-config refresh-peer.py plc-map.py clean-empty-dirs.py mtail.py +BINARIES = plc-config plc-config-tty db-config dns-config plc-map.py clean-empty-dirs.py mtail.py \ + support-scripts/renew_reminder.py support-scripts/gen_aliases.py INIT_SCRIPTS = api bootcd bootmanager crond db dns functions gpg httpd mail network packages postgresql ssh ssl syslog INITS=$(addprefix plc.d/,$(INIT_SCRIPTS)) ########## make sync PLCHOST=hostname ifdef PLCHOST -PLCSSH:=root@$(PLCHOST) +ifdef VSERVER +PLCSSH:=root@$(PLCHOST):/vservers/$(VSERVER) +endif endif LOCAL_RSYNC_EXCLUDES := --exclude '*.pyc' @@ -19,17 +22,16 @@ 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) host.init $(PLCSSH):/etc/init.d/plc - +$(RSYNC) guest.init $(PLCSSH):/plc/root/etc/init.d/plc - +$(RSYNC) $(BINARIES) $(PLCSSH):/plc/root/usr/bin - +$(RSYNC) $(INITS) $(PLCSSH):/plc/root/etc/plc.d - +$(RSYNC) plc_config.py $(PLCSSH):/plc/root/usr/lib/python2.4/site-packages/plc_config.py - +$(RSYNC) default_config.xml $(PLCSSH):/plc/data/etc/planetlab/default_config.xml + +$(RSYNC) guest.init $(PLCSSH)/etc/init.d/plc + +$(RSYNC) $(BINARIES) $(PLCSSH)/usr/bin + +$(RSYNC) $(INITS) $(PLCSSH)/etc/plc.d + +$(RSYNC) plc_config.py $(PLCSSH)/usr/lib/python2.5/site-packages/plc_config.py + +$(RSYNC) default_config.xml $(PLCSSH)/etc/planetlab/default_config.xml @echo XXXXXXXX You might consider running the following command - @echo ssh $(PLCSSH) chroot /plc/root service plc start + @echo ssh $(PLCHOST) service plc start endif