docker-entrypoint.sh 359 B

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