onion port test files
This commit is contained in:
parent
3f4c390a5d
commit
a4086b9e79
|
@ -134,7 +134,7 @@ function test_unique_onion_ports {
|
|||
fi
|
||||
|
||||
# test that some services are not assigned the same onion port
|
||||
FILES="src/${PROJECT_NAME}-app-*"
|
||||
FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
|
||||
ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}')
|
||||
unique_ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq)
|
||||
if [[ "$ports" != "$unique_ports" ]]; then
|
||||
|
|
Loading…
Reference in New Issue