Loading roid/roid/tasks.py +3 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,9 @@ def torrc(c, port=False, uri=False, path=False): c.run("sed -i \"s/SystemUri/{}/g\" /etc/tor/torrc".format(uri or "unix:\/var\/run\/nginx-onion-80.sock")) c.run("mkdir -p /srv/tor") c.run("chown debian-tor:debian-tor /srv/tor") c.run("mkdir -p /srv/tor/onion_service") c.run("chown debian-tor:debian-tor /srv/tor/onion_service") c.run("chmod 700 /srv/tor/onion_service") print("Start tor and wait 10 seconds") c.run("service tor start") c.run("sleep 20") Loading Loading
roid/roid/tasks.py +3 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,9 @@ def torrc(c, port=False, uri=False, path=False): c.run("sed -i \"s/SystemUri/{}/g\" /etc/tor/torrc".format(uri or "unix:\/var\/run\/nginx-onion-80.sock")) c.run("mkdir -p /srv/tor") c.run("chown debian-tor:debian-tor /srv/tor") c.run("mkdir -p /srv/tor/onion_service") c.run("chown debian-tor:debian-tor /srv/tor/onion_service") c.run("chmod 700 /srv/tor/onion_service") print("Start tor and wait 10 seconds") c.run("service tor start") c.run("sleep 20") Loading