Browse Source

onion port test files

Bob Mottram 7 years ago
parent
commit
a4086b9e79
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-tests

+ 1
- 1
src/freedombone-tests View File

134
     fi
134
     fi
135
 
135
 
136
     # test that some services are not assigned the same onion port
136
     # test that some services are not assigned the same onion port
137
-    FILES="src/${PROJECT_NAME}-app-*"
137
+    FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
138
     ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}')
138
     ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}')
139
     unique_ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq)
139
     unique_ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq)
140
     if [[ "$ports" != "$unique_ports" ]]; then
140
     if [[ "$ports" != "$unique_ports" ]]; then