1
mirror of https://github.com/jakejarvis/docker-tor.git synced 2025-04-25 15:25:24 -04:00
docker-tor/entrypoint.sh
2024-01-11 12:15:31 -05:00

11 lines
236 B
Bash
Executable File

#!/bin/sh
set -e
# fix permissions
chown -R debian-tor:debian-tor /var/lib/tor
find /var/lib/tor -type d -exec chmod 700 {} \;
find /var/lib/tor -type f -exec chmod 600 {} \;
# step down from root to tor user
gosu debian-tor tor "$@"