tor-browser/start
2017-01-27 05:15:20 +01:00

15 lines
402 B
Bash
Executable File

#!/bin/bash
#
# Entrypoint script for tor-browser.
#
set -euo pipefail
TORRC_PATH=${TORRC_PATH:-""}
[[ "$TORRC_PATH" ]] && echo "$(date) [ $(basename $0) ] Using torrc file from '$TORRC_PATH'.."
[[ -e "$TORRC_PATH" ]] || {
echo "$(date) [ $(basename $0) ] FATAL: No such file '$TORRC_PATH'." >&1
exit 1
}
cp -v "$TORRC_PATH" /usr/local/bin/Browser/TorBrowser/Data/Tor/torrc
start-tor-browser "$@"