diff options
author | d3v11 <d3v11@d3v11.ano> | 2012-10-14 03:16:37 +0000 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2012-10-14 03:16:37 +0000 |
commit | 19e8d796127ac076b4b9d7b0fe72e345ea59191e (patch) | |
tree | fe8976daebcc66e066440d5ae9f666f9783e5e09 /contrib | |
parent | cb29ad49d2c713de162c3f29dfe2767be78ff3e1 (diff) | |
download | resdb-19e8d796127ac076b4b9d7b0fe72e345ea59191e.tar.gz resdb-19e8d796127ac076b4b9d7b0fe72e345ea59191e.zip |
[contrib/peer2anonet/peer2anonet] cp bugfix
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/peer2anonet/peer2anonet | 3 |
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 |