This commit is contained in:
2026-05-21 01:45:07 +05:30
parent 306a16c88a
commit 8e8dc38d8c
15 changed files with 7 additions and 2869 deletions
+3 -3
View File
@@ -22,8 +22,8 @@ def check_dependencies():
missing.append("python3-stem")
try:
subprocess.check_output('which tor', shell=True, stderr=subprocess.DEVNULL)
except subprocess.CalledProcessError:
subprocess.check_output(['/usr/bin/tor', '--version'], stderr=subprocess.DEVNULL)
except (subprocess.CalledProcessError, FileNotFoundError):
missing.append("tor")
if missing:
@@ -90,7 +90,7 @@ def main():
# Start Tor service
try:
subprocess.check_call(['sudo', 'systemctl', 'start', 'tor'],
subprocess.check_call(['/usr/bin/sudo', '/bin/systemctl', 'start', 'tor'],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
except Exception as e: