[Fusionforge-commits] r12609 - trunk/tests/lxc

Christian Bayle cbayle at fusionforge.org
Tue Mar 8 15:12:48 CET 2011


Author: cbayle
Date: 2011-03-08 15:12:46 +0100 (Tue, 08 Mar 2011)
New Revision: 12609

Modified:
   trunk/tests/lxc/lxc-centos5.postinst
   trunk/tests/lxc/lxc-debian6.postinst
Log:
only create hostkeydir if not exist


Modified: trunk/tests/lxc/lxc-centos5.postinst
===================================================================
--- trunk/tests/lxc/lxc-centos5.postinst	2011-03-08 13:49:45 UTC (rev 12608)
+++ trunk/tests/lxc/lxc-centos5.postinst	2011-03-08 14:12:46 UTC (rev 12609)
@@ -117,7 +117,7 @@
 
 rootfs=$path/rootfs
 hostkeydir=/var/lib/lxc/ssh
-mkdir $hostkeydir
+[ -d $hostkeydir ] || mkdir $hostkeydir
 
 configure_network $rootfs $address $netmask $gateway $name
 if [ $? -ne 0 ]; then

Modified: trunk/tests/lxc/lxc-debian6.postinst
===================================================================
--- trunk/tests/lxc/lxc-debian6.postinst	2011-03-08 13:49:45 UTC (rev 12608)
+++ trunk/tests/lxc/lxc-debian6.postinst	2011-03-08 14:12:46 UTC (rev 12609)
@@ -111,6 +111,7 @@
 
 rootfs=$path/rootfs
 hostkeydir=/var/lib/lxc/ssh
+[ -d $hostkeydir ] || mkdir $hostkeydir
 mkdir $hostkeydir
 
 configure_network $rootfs $address $netmask $gateway $name




More information about the Fusionforge-commits mailing list