integration-tests: futurize test_integration_clique
[oweals/gnunet.git] / contrib / docker / docker-entrypoint.sh
1 #!/bin/bash -e
2
3 echo "${LOCAL_PORT_RANGE:-49152 65535}" > /proc/sys/net/ipv4/ip_local_port_range
4 sed -i 's/$GNUNET_PORT/'${GNUNET_PORT:-2086}'/g' /etc/gnunet.conf
5
6 if [[ $# -eq 0 ]]; then
7   exec gnunet-arm \
8     --config=/etc/gnunet.conf \
9     --start \
10     --monitor
11 elif [[ -z $1 ]] || [[ ${1:0:1} == '-' ]]; then
12   exec gnunet-arm "$@"
13 else
14   exec "$@"
15 fi