[evolvis-commits] r16184: Include ssh keys in the vm builder↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Mar 1 01:02:03 CET 2011
Author: mirabilos
Date: 2011-03-01 01:02:02 +0100 (Tue, 01 Mar 2011)
New Revision: 16184
Modified:
trunk/gforge_base/evolvisforge-5.1/tests/openvz/Makefile
Log:
Include ssh keys in the vm builder
Modified: trunk/gforge_base/evolvisforge-5.1/tests/openvz/Makefile
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/tests/openvz/Makefile 2011-03-01 00:01:59 UTC (rev 16183)
+++ trunk/gforge_base/evolvisforge-5.1/tests/openvz/Makefile 2011-03-01 00:02:02 UTC (rev 16184)
@@ -57,6 +57,9 @@
[ ! -f $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hostname ] || rm $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/hostname
#
[ -c $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/dev/ptmx ] || chroot $(VZPRIVATEDIR)/$(VEIDDEBTEMP) /bin/mknod /dev/ptmx c 5 2
+ mkdir $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/root/.ssh
+ cp ~$(USERCLIENT)/.ssh/id_rsa.pub $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/root/.ssh/authorized_keys
+ cp ssh/ssh_host_* $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/etc/ssh/
cd $(VZPRIVATEDIR)/$(VEIDDEBTEMP)/ ; tar --numeric-owner -zcf $(VZTEMPLATEDIR)/cache/debian-$(DEBVERS)-$(ARCH)-minimal.tar.gz .
buildcentostemplate: beroot buildcentosvm
More information about the evolvis-commits
mailing list