Commit b7c6ded3 authored by Tails developers's avatar Tails developers
Browse files

Remove temp dir immediately after we're done with it.

parent f7629905
...@@ -193,6 +193,8 @@ install_tor_browser "${TMP}/${MAIN_BUNDLE}" "${TBB_INSTALL}" ...@@ -193,6 +193,8 @@ install_tor_browser "${TMP}/${MAIN_BUNDLE}" "${TBB_INSTALL}"
mkdir -p "${TBB_EXT}" mkdir -p "${TBB_EXT}"
install_langpacks_from_bundles "${TMP}" "${TBB_EXT}" install_langpacks_from_bundles "${TMP}" "${TBB_EXT}"
rm -r "${TMP}"
# Let's put all the bundled extensions in the global extensions # Let's put all the bundled extensions in the global extensions
# directory... # directory...
mv "${TBB_INSTALL}"/Browser/TorBrowser/Data/Browser/profile.default/extensions/* "${TBB_EXT}" mv "${TBB_INSTALL}"/Browser/TorBrowser/Data/Browser/profile.default/extensions/* "${TBB_EXT}"
...@@ -211,7 +213,5 @@ create_default_profile "${TBB_INSTALL}"/Browser/TorBrowser/Data/Browser/profile. ...@@ -211,7 +213,5 @@ create_default_profile "${TBB_INSTALL}"/Browser/TorBrowser/Data/Browser/profile.
chown -R root:root "${TBB_INSTALL}" "${TBB_PROFILE}" "${TBB_EXT}" chown -R root:root "${TBB_INSTALL}" "${TBB_PROFILE}" "${TBB_EXT}"
chmod -R a+rX "${TBB_INSTALL}" "${TBB_PROFILE}" "${TBB_EXT}" chmod -R a+rX "${TBB_INSTALL}" "${TBB_PROFILE}" "${TBB_EXT}"
rm -r "${TMP}"
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/bin/tor-browser 99 update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/bin/tor-browser 99
update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser /usr/local/bin/tor-browser 99 update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser /usr/local/bin/tor-browser 99
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