Attempt to support more distros

This commit is contained in:
Jean-Paul Calderone 2019-04-04 15:50:24 -04:00
parent 0cf600a27d
commit 1c5b284a3b

View File

@ -3,11 +3,11 @@
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail set -euxo pipefail
# Script to install Tor CODENAME=$(lsb_release --short --codename)
set -ex # Script to install Tor
echo "deb http://deb.torproject.org/torproject.org stretch main" | sudo tee -a /etc/apt/sources.list echo "deb http://deb.torproject.org/torproject.org ${CODENAME} main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://deb.torproject.org/torproject.org stretch main" | sudo tee -a /etc/apt/sources.list echo "deb-src http://deb.torproject.org/torproject.org ${CODENAME} main" | sudo tee -a /etc/apt/sources.list
# Install Tor repo signing key # Install Tor repo signing key
sudo apt-key add - <<EOF sudo apt-key add - <<EOF