summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/peer2anonet/peer2anonet3
1 files changed, 2 insertions, 1 deletions
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