From 19e8d796127ac076b4b9d7b0fe72e345ea59191e Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sun, 14 Oct 2012 03:16:37 +0000 Subject: [contrib/peer2anonet/peer2anonet] cp bugfix --- contrib/peer2anonet/peer2anonet | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index bb91d71..7ffb248 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -223,7 +223,8 @@ protocol bgp $PEER { table AnoNet_routes; }" >> /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 -- cgit v1.2.3