mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
torproxy: Don't disable apt-transport-tor in setup
This was needed temporarily when migrating from Tor to Tor Proxy app. But now we should preserve the user's existing configuration during app upgrade. Tests: - Install Tor Proxy version 1. "Download software packages over Tor" is enabled. Upgrade to Tor Proxy version 2. "Download software packages over Tor" is still enabled. Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
2e7b9f8a8e
commit
f10c276aaa
@ -26,10 +26,6 @@ TORPROXY_CONFIG_AUG = f'/files/{TORPROXY_CONFIG}'
|
||||
@privileged
|
||||
def setup():
|
||||
"""Setup Tor configuration."""
|
||||
# Disable default tor service. We will use tor@fbxproxy instance
|
||||
# instead.
|
||||
_disable_apt_transport_tor()
|
||||
|
||||
# Disable default Tor service.
|
||||
action_utils.service_disable('tor@default')
|
||||
# Mask the service to prevent re-enabling it by the Tor master service.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user