changeset 1032:b3f81bd4309d draft

[contrib/peer2anonet/peer2anonet] cp bugfix
author d3v11 <d3v11@d3v11.ano>
date Sun, 14 Oct 2012 03:16:37 +0000
parents 7322afeeb0b9
children aac0e6fda912 f1dae40f4d1b
files contrib/peer2anonet/peer2anonet
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/peer2anonet/peer2anonet	Sun Oct 14 01:50:59 2012 +0000
+++ b/contrib/peer2anonet/peer2anonet	Sun Oct 14 03:16:37 2012 +0000
@@ -223,7 +223,8 @@
 }" >> /services/bird/bird.conf
 
         if [ -e /etc/peer2anonet/peers/"$PEER"/run ]; then
-            cp /etc/peer2anonet/peers/$PEER/run /services/"$PEER"/run
+          test -L /services/"$PEER"/run || rm -f /services/"$PEER"/run
+          test -L /services/"$PEER"/run || ln -s /etc/peer2anonet/peers/"$PEER"/run /services/"$PEER"/run
         else
             echo "#!/bin/bash