Commit 19b51726 authored by Hiro's avatar Hiro 🏄
Browse files

Setup containing directory for onion service

parent 233941f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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")