mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-18 00:34:29 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
2b990dbb32
commit
e8f9fecabd
@ -97,10 +97,10 @@ fi
|
||||
[ -d "/data/tor" ] || mkdir -p "/data/tor"
|
||||
[ -d "/config/tor" ] || mkdir -p "/config/tor"
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
if [ -f "/config/tor/torrc" ]; then
|
||||
cp -Rf "/config/tor/torrc" "/etc/tor/torrc"
|
||||
if [ -f "/config/tor/torrc" ]; then
|
||||
cp -Rf "/config/tor/torrc" "/etc/tor/torrc"
|
||||
else
|
||||
cp -Rf "/etc/tor/torrc" "/config/tor/torrc"
|
||||
cp -Rf "/etc/tor/torrc" "/config/tor/torrc"
|
||||
fi
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
case "$1" in
|
||||
@ -128,7 +128,7 @@ healthcheck) # Docker healthcheck
|
||||
if [ $# -eq 0 ]; then
|
||||
tor -f /etc/tor/torrc
|
||||
else
|
||||
__exec_bash "/bin/bash"
|
||||
__exec_bash "$@"
|
||||
fi
|
||||
exitCode=$?
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user