mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-05 14:03:17 +02:00
This commit is contained in:
@@ -31,6 +31,8 @@ tor_pkgs="torsocks nyx obfs4proxy python3-stem apt-transport-tor curl gpg"
|
|||||||
tor_deb_repo="tor+http://apow7mjfryruh65chtdydfmqfpj5btws7nbocgtaovhvezgccyjazpqd.onion"
|
tor_deb_repo="tor+http://apow7mjfryruh65chtdydfmqfpj5btws7nbocgtaovhvezgccyjazpqd.onion"
|
||||||
#tor_deb_repo="tor+https://deb.torproject.org"
|
#tor_deb_repo="tor+https://deb.torproject.org"
|
||||||
#tor_deb_repo="https://deb.torproject.org"
|
#tor_deb_repo="https://deb.torproject.org"
|
||||||
|
tor_deb_repo_clean="${tor_deb_repo#*tor+}"
|
||||||
|
tor_deb_repo_pgp_fingerprint="A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89"
|
||||||
|
|
||||||
## https://github.com/keroserene/snowflake/commits/master
|
## https://github.com/keroserene/snowflake/commits/master
|
||||||
snowflake_commit_hash="af6e2c30e1a6aacc6e7adf9a31df0a387891cc37"
|
snowflake_commit_hash="af6e2c30e1a6aacc6e7adf9a31df0a387891cc37"
|
||||||
@@ -134,13 +136,12 @@ if [ "${action}" = "install" ]; then
|
|||||||
|
|
||||||
# install tor
|
# install tor
|
||||||
echo -e "\n*** Install Tor ***"
|
echo -e "\n*** Install Tor ***"
|
||||||
# shellcheck disable=SC2086
|
|
||||||
sudo apt -o Dpkg::Options::="--force-confold" install -y tor
|
sudo apt -o Dpkg::Options::="--force-confold" install -y tor
|
||||||
|
# shellcheck disable=SC2086
|
||||||
sudo apt install -y ${tor_pkgs}
|
sudo apt install -y ${tor_pkgs}
|
||||||
|
|
||||||
echo -e "\n*** Adding deb.torproject.org keyring ***"
|
echo -e "\n*** Adding deb.torproject.org keyring ***"
|
||||||
if ! torsocks curl -s https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/torproject.gpg --import
|
if ! curl -s -x socks5h://127.0.0.1:9050 --connect-timeout 10 "${tor_deb_repo_clean}/torproject.org/${tor_deb_repo_pgp_fingerprint}.asc" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/torproject.gpg >/dev/null; then
|
||||||
then
|
|
||||||
echo "!!! FAIL: Was not able to import deb.torproject.org key";
|
echo "!!! FAIL: Was not able to import deb.torproject.org key";
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -155,8 +156,8 @@ deb-src [arch=${architecture}] ${tor_deb_repo}/torproject.org ${distribution} m
|
|||||||
|
|
||||||
echo -e "\n*** Reinstall ***"
|
echo -e "\n*** Reinstall ***"
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
# shellcheck disable=SC2086
|
|
||||||
sudo apt -o Dpkg::Options::="--force-confold" install -y tor
|
sudo apt -o Dpkg::Options::="--force-confold" install -y tor
|
||||||
|
# shellcheck disable=SC2086
|
||||||
sudo apt install -y ${tor_pkgs}
|
sudo apt install -y ${tor_pkgs}
|
||||||
|
|
||||||
# make sure tor is not running after is was installed
|
# make sure tor is not running after is was installed
|
||||||
|
Reference in New Issue
Block a user