This commit is contained in:
maqp 2019-03-03 17:00:01 +02:00
parent 63d625e9fd
commit 6ab753565e
2 changed files with 43 additions and 27 deletions

View File

@ -155,10 +155,10 @@ install_tcb () {
kill_network
create_user_data_dir
verify_files
create_user_data_dir
sudo python3.6 -m pip install /opt/tfc/${VIRTUALENV}
sudo python3.6 -m virtualenv /opt/tfc/venv_tcb --system-site-packages --never-download
@ -186,9 +186,9 @@ install_tcb () {
sudo rm /opt/tfc/requirements-relay.txt
sudo rm /opt/tfc/requirements-venv.txt
sudo rm /opt/tfc/${VIRTUALENV}
sudo rm /opt/install.sh
sudo rm /opt/install.sh.asc
sudo rm /opt/pubkey.asc
sudo rm -f /opt/install.sh
sudo rm -f /opt/install.sh.asc
sudo rm -f /opt/pubkey.asc
process_tcb_dependencies "rm"
add_serial_permissions
@ -206,9 +206,12 @@ install_local_test () {
sudo torsocks git clone https://github.com/maqp/tfc.git /opt/tfc
verify_tcb_requirements_files
sudo torsocks python3.6 -m pip download --no-cache-dir -r /opt/tfc/requirements-venv.txt --require-hashes -d /opt/tfc/
sudo torsocks python3.6 -m pip download --no-cache-dir -r /opt/tfc/requirements.txt --require-hashes -d /opt/tfc/
verify_files
upgrade_tor
sudo torsocks apt install terminator -y
@ -239,9 +242,9 @@ install_local_test () {
sudo rm /opt/tfc/requirements-relay.txt
sudo rm /opt/tfc/requirements-venv.txt
sudo rm /opt/tfc/${VIRTUALENV}
sudo rm /opt/install.sh
sudo rm /opt/install.sh.asc
sudo rm /opt/pubkey.asc
sudo rm -f /opt/install.sh
sudo rm -f /opt/install.sh.asc
sudo rm -f /opt/pubkey.asc
process_tcb_dependencies "rm"
install_complete "Installation of TFC for local testing is now complete."
@ -251,6 +254,10 @@ install_local_test () {
install_developer () {
dpkg_check
if [[ -d "$HOME/tfc/" ]]; then
sudo rm -r $HOME/tfc/
fi
upgrade_tor
sudo torsocks apt install git libssl-dev python3-pip python3-setuptools python3-tk terminator -y
@ -275,6 +282,10 @@ install_developer () {
chmod a+rwx -R $HOME/tfc/
sudo rm -f /opt/install.sh
sudo rm -f /opt/install.sh.asc
sudo rm -f /opt/pubkey.asc
add_serial_permissions
install_complete "Installation of the TFC dev environment is now complete."
@ -294,6 +305,8 @@ install_relay_ubuntu () {
sudo torsocks python3.6 -m pip download --no-cache-dir -r /opt/tfc/requirements-venv.txt --require-hashes -d /opt/tfc/
sudo torsocks python3.6 -m pip download --no-cache-dir -r /opt/tfc/requirements.txt --require-hashes -d /opt/tfc/
verify_files
upgrade_tor
torsocks python3.6 -m pip install -r /opt/tfc/requirements-venv.txt --require-hashes
@ -322,9 +335,9 @@ install_relay_ubuntu () {
sudo rm /opt/tfc/requirements-venv.txt
sudo rm /opt/tfc/tfc.py
sudo rm /opt/tfc/${VIRTUALENV}
sudo rm /opt/install.sh
sudo rm /opt/install.sh.asc
sudo rm /opt/pubkey.asc
sudo rm -f /opt/install.sh
sudo rm -f /opt/install.sh.asc
sudo rm -f /opt/pubkey.asc
process_tcb_dependencies "rm"
add_serial_permissions
@ -344,6 +357,9 @@ install_relay_tails () {
t_sudo apt install git libssl-dev python3-pip python3-setuptools -y
t_sudo git clone https://github.com/maqp/tfc.git /opt/tfc
verify_tcb_requirements_files
verify_files
create_user_data_dir
t_sudo python3.6 -m pip download --no-cache-dir -r /opt/tfc/requirements-relay.txt --require-hashes -d /opt/tfc/
@ -419,9 +435,9 @@ install_relay_tails () {
t_sudo rm /opt/tfc/${PYCPARSER}
t_sudo rm /opt/tfc/${CFFI}
t_sudo rm /opt/tfc/${CRYPTOGRAPHY}
t_sudo rm /opt/install.sh
t_sudo rm /opt/install.sh.asc
t_sudo rm /opt/pubkey.asc
t_sudo rm -f /opt/install.sh
t_sudo rm -f /opt/install.sh.asc
t_sudo rm -f /opt/pubkey.asc
install_complete "Installation of the TFC Relay configuration is now complete."
}

View File

@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE6o84umdLJC6ZRIRcmBNw6XJaD7oFAlxJJdcACgkQ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