Commit 65db984e authored by segfault's avatar segfault

Use new pythonlib function tor_has_bootstrapped()

parent 5db6a085
......@@ -4,6 +4,8 @@ import os
import os.path
import sys
from tailslib.systemd import tor_has_bootstrapped
# Main
try:
......@@ -22,7 +24,7 @@ lang_code = os.getenv('LANG', 'en')[0:2]
# If possible, let's hand-off to our website, which should be the most
# up-to-date option.
if os.system('/bin/systemctl --quiet is-active tails-tor-has-bootstrapped.target') == 0:
if tor_has_bootstrapped():
if os.path.isfile(os.path.join(
wiki_path, page + '.' + lang_code + ".html")):
uri = tails_homepage + '/' + page + '/index.' + lang_code + '.html'
......
......@@ -6,7 +6,7 @@ import sys
import sh
from tailslib.tor import tor_has_bootstrapped
from tailslib.systemd import tor_has_bootstrapped
from tailslib.exceptions import TorFailedToBoostrapError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment