summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-10-14 03:16:37 +0000
committerd3v11 <d3v11@d3v11.ano>2012-10-14 03:16:37 +0000
commit19e8d796127ac076b4b9d7b0fe72e345ea59191e (patch)
treefe8976daebcc66e066440d5ae9f666f9783e5e09 /contrib
parentcb29ad49d2c713de162c3f29dfe2767be78ff3e1 (diff)
downloadresdb-19e8d796127ac076b4b9d7b0fe72e345ea59191e.tar.gz
resdb-19e8d796127ac076b4b9d7b0fe72e345ea59191e.zip
[contrib/peer2anonet/peer2anonet] cp bugfix
Diffstat (limited to 'contrib')
-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