Commit 50e35d63 authored by Tails developers's avatar Tails developers
Browse files

Refactor path into variable.

parent 3674a055
......@@ -78,7 +78,8 @@ configure_chroot () {
echo "127.0.0.1 localhost amnesia" > ${CHROOT}/etc/hosts
# Create a fresh Tor Browser profile for the i2pbrowser user
BROWSER_PROFILE="${CHROOT}/home/${BROWSER_USER}/.tor-browser/profile.default"
BROWSER_CONF="${CHROOT}/home/${BROWSER_USER}/.tor-browser"
BROWSER_PROFILE="${BROWSER_CONF}/profile.default"
BROWSER_EXT="${BROWSER_PROFILE}/extensions"
mkdir -p "${BROWSER_EXT}"
ln -s "${NOSCRIPT}" "${BROWSER_EXT}"
......@@ -124,7 +125,7 @@ configure_chroot () {
rm -f ${BROWSER_PROFILE}/bookmarks.html
rm -f ${BROWSER_PROFILE}/places.sqlite
chown -R ${BROWSER_USER}:${BROWSER_USER} "${CHROOT}/home/${BROWSER_USER}/.tor-browser"
chown -R ${BROWSER_USER}:${BROWSER_USER} "${BROWSER_CONF}"
# Change the theme when not using Windows camouflage
if [ -z "${CAMOUFLAGE}" ]; then
......
......@@ -82,8 +82,8 @@ configure_chroot () {
chmod a+r ${CHROOT}/etc/resolv.conf
# Create a fresh browser profile for the clearnet user
BROWSER_PROFILE="${CHROOT}"/home/${BROWSER_USER}/.tor-browser/profile.default
BROWSER_CONF="${CHROOT}/home/${BROWSER_USER}/.tor-browser"
BROWSER_PROFILE="${BROWSER_CONF}/profile.default"
BROWSER_EXT="${BROWSER_PROFILE}"/extensions
mkdir -p "${BROWSER_EXT}"
cp -Pr "${TBB_PROFILE}"/extensions/langpack-*.xpi "${BROWSER_EXT}"
......@@ -111,7 +111,7 @@ configure_chroot () {
rm -f ${BROWSER_PROFILE}/bookmarks.html
rm -f ${BROWSER_PROFILE}/places.sqlite
chown -R ${BROWSER_USER}:${BROWSER_USER} ${CHROOT}/home/clearnet/.tor-browser
chown -R ${BROWSER_USER}:${BROWSER_USER} "${BROWSER_CONF}"
# Set a scary theme (except if we're using Windows
# camouflage). Note that the tails-activate-win8-theme script that
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment