entrypoint.sh 263 B

1234567891011
  1. #!/bin/sh
  2. set -eux
  3. # alternative: https://pkgs.alpinelinux.org/contents?file=envsubst&path=&name=&branch=v3.12
  4. sed -e "s#{version}#$VERSION#" \
  5. -e "s#{virtual_port}#$VIRTUAL_PORT#" \
  6. -e "s#{target}#$TARGET#" \
  7. /torrc.template >/tmp/torrc
  8. exec "$@"