robosats-deploy/compose/tor/entrypoint.sh
Reckless_Satoshi c43d2a00b3 Refactor tor service
2023-09-30 09:16:38 -07:00

13 lines
249 B
Bash
Executable File

#!/bin/sh
set -e
# Change local user id and group
usermod -u 1000 alice
groupmod -g 1000 alice
# Set correct owners on volumes
chown -R tor:alice /var/lib/tor
chown -R :alice /etc/tor
chown -R alice:alice /home/alice
exec sudo -u tor /usr/bin/tor