initial commit
This commit is contained in:
commit
45219ce52f
5 changed files with 166 additions and 0 deletions
22
assets/docker-entrypoint.sh
Normal file
22
assets/docker-entrypoint.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "${1:0:1}" == '-' ]; then
|
||||
set -- tor $@
|
||||
fi
|
||||
|
||||
if [ "$1" == "tor" ]; then
|
||||
# Set config
|
||||
python3 ./tor_config.py
|
||||
|
||||
# set rights on keys
|
||||
chown -R debian-tor:debian-tor /var/lib/tor/hidden_service/
|
||||
chmod -R 700 /var/lib/tor/hidden_service/
|
||||
|
||||
# Switch user
|
||||
|
||||
set -- su debian-tor -s /bin/sh -c "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue