From: miljenko Date: Mon, 3 Dec 2007 15:22:00 +0000 (+0000) Subject: Cleanup should remove /tmp/$eid. X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=0fd925de74c756c20ca3c71152b21437ac18c9a0;p=imunes.git Cleanup should remove /tmp/$eid. Bug found by: Submitted by: Reviewed by: Approved by: Obtained from: --- diff --git a/exec.tcl b/exec.tcl index f7eef54..57a85fb 100755 --- a/exec.tcl +++ b/exec.tcl @@ -1,4 +1,4 @@ -# $Id: exec.tcl,v 1.65 2007/12/01 00:56:46 marko Exp $ +# $Id: exec.tcl,v 1.66 2007/12/03 15:22:00 miljenko Exp $ # Copyright 2004, 2005 University of Zagreb, Croatia. All rights reserved. # @@ -483,6 +483,7 @@ proc l3node.destroy { eid node } { } } catch {nexec vimage -d $node_id} + set node_dir "/tmp/$eid/$node" nexec rm -fr $node_dir } @@ -678,6 +679,7 @@ proc vimageCleanup { eid } { } catch { nexec vimage -d $eid } catch { nexec rm -f /usr/local/etc/quagga/Quagga.conf } + nexec rm -fr "/tmp/$eid" statline "Cleanup completed in [expr [clock seconds] - $t_start] seconds." }