summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorredfish2016-03-14 23:52:17 -0500
committerredfish2016-03-14 23:52:17 -0500
commite77f0fea70f5d049d52d51682762b95ec4fcaa93 (patch)
treec3584ba50d42ee3f82bcd62a5af8db08798b8708
parentf2535f8bd55e7ef607fc84798f321900fb60d60b (diff)
downloadaur-e77f0fea70f5d049d52d51682762b95ec4fcaa93.tar.gz
install: use /var/lib not /var/run for tor auth
/var/run contents does not persist across reboots. Note: the real fix is when latest tor gets released, ues CookieDirGroupReadable (approxi name).
-rw-r--r--zeronet.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/zeronet.install b/zeronet.install
index e52190a1083e..82b3f5543bdb 100644
--- a/zeronet.install
+++ b/zeronet.install
@@ -8,12 +8,12 @@ post_install() {
# Don't run thesre operations automatically, because they are security-sensitive
echo ">>> Default mode is clearnet+Tor. Give zeronet permissions to configure hidden service:"
echo ">>> sudo usermod -a -G tor zeronet"
- echo ">>> sudo mkdir -m 750 /var/run/tor && sudo chown tor:tor /var/run/tor"
+ echo ">>> sudo mkdir -m 750 /var/lib/tor-auth && sudo chown tor:tor /var/lib/tor-auth"
echo ">>> Add/edit the following options in /etc/tor/torrc:"
echo ">>> CookieAuth 1"
echo ">>> CookieAuthentication 1"
echo ">>> CookieAuthFileGroupReadable 1"
- echo ">>> CookieAuthFile /var/run/tor/control_auth_cookie"
+ echo ">>> CookieAuthFile /var/lib/tor-auth/control_auth_cookie"
echo ">>> Run daemon and check status:"
echo ">>> sudo systemctl start zeronet"
echo ">>> sudo systemctl status zeronet"