generate-tor-browser-profile 355 Bytes
Newer Older
1 2
#!/bin/sh

3 4
set -e
set -u
5

6 7 8
# Import the TBB_PROFILE variable
. /usr/local/lib/tails-shell-library/tor-browser.sh

9 10 11 12 13 14 15 16
USER_PROFILE="${HOME}/.tor-browser"

if [ -e "${USER_PROFILE}" ]; then
    echo "A tor-browser profile already exists at: ${USER_PROFILE}" >&2
    exit 1
fi

mkdir -p "${USER_PROFILE}"
17
cp -a "${TBB_PROFILE}" "${USER_PROFILE}"/profile.default