Sfoglia il codice sorgente

Peers temporary file

Bob Mottram 9 anni fa
parent
commit
7204b396d7
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      src/freedombone-meshweb

+ 4
- 0
src/freedombone-meshweb Vedi File

@@ -6,6 +6,8 @@
6 6
 # the freedombone-client script installed
7 7
 SERVER_INSTALLATION="no"
8 8
 
9
+PEERS_FILE=/tmp/meshwebstart
10
+
9 11
 ZERONET_REPO='https://github.com/bashrc/ZeroNet'
10 12
 ZERONET_DIR=~/zeronet
11 13
 ZERONET_URL=http://127.0.0.1:43110
@@ -59,6 +61,8 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
59 61
     ctr=$((ctr + 1))
60 62
 done < "$PEERS_FILE"
61 63
 
64
+rm $PEERS_FILE
65
+
62 66
 if [ ${ctr} -lt "1" ]; then
63 67
    echo 'No peers were found'
64 68
    exit 0