]> git.entuzijast.net Git - imunes.git/commitdiff
Fix exec.tcl so that it can run without any traces of quagga (no package
authormarko <marko>
Tue, 2 Aug 2005 11:13:48 +0000 (11:13 +0000)
committermarko <marko>
Tue, 2 Aug 2005 11:13:48 +0000 (11:13 +0000)
installed and no quagga specific directories).

Bug found by: Atanu Ghosh
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:

exec.tcl

index 9b88a37f56fdb3afb2f9d2f1db904a4f123f6ca8..661c23fb4357e4c9331945504009076ff0ca1db5 100755 (executable)
--- a/exec.tcl
+++ b/exec.tcl
@@ -260,10 +260,10 @@ proc deployCfg {} {
 
     nexec rm -fr /var/run/quagga
     nexec rm -f /usr/local/etc/quagga/Quagga.conf
-    nexec ln -s /tmp/@ /var/run/quagga
-    nexec ln -s /tmp/@/boot.conf /usr/local/etc/quagga/Quagga.conf
+    catch { nexec ln -s /tmp/@ /var/run/quagga }
+    catch { nexec ln -s /tmp/@/boot.conf /usr/local/etc/quagga/Quagga.conf }
     foreach file { bgpd.conf ospfd.conf ripd.conf vtysh.conf zebra.conf } {
-       nexec cp /dev/null /usr/local/etc/quagga/$file
+       catch { nexec cp /dev/null /usr/local/etc/quagga/$file }
     }
 
     foreach node $nodes {