bugfix : slices did not get created correctly
Thierry Parmentelat [Fri, 28 Mar 2008 14:00:45 +0000 (14:00 +0000)]
vserver-reference.spec

index 6815d20..5c23425 100644 (file)
@@ -121,7 +121,7 @@ rm -f %{vcached_pid}
 chkconfig --add vserver-reference
 chkconfig vserver-reference on
 # store the default for nodemanager
-[ -f /etc/planetlab/slicefamily ] || echo %{slicefamily} > /etc/planetlab/slicefamily
+[ -f /etc/planetlab/slicefamily ] || { mkdir -p /etc/planetlab ; echo %{slicefamily} > /etc/planetlab/slicefamily ; }
 [ "$PL_BOOTCD" = "1" ] || service vserver-reference start
 
 # Randomize daily run time