From 44616f1af53fe7990510415a2b1320aa2ad800f9 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 19 Apr 2015 12:29:23 +0200 Subject: perms and user --- packaging/docker/onion/Dockerfile | 1 + packaging/docker/onion/start.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'packaging/docker') diff --git a/packaging/docker/onion/Dockerfile b/packaging/docker/onion/Dockerfile index 94aaae1..1039efe 100644 --- a/packaging/docker/onion/Dockerfile +++ b/packaging/docker/onion/Dockerfile @@ -7,4 +7,5 @@ ADD start.sh /start.sh RUN chmod a+rx /start.sh VOLUME /etc/tor VOLUME /var/lib/tor/hs +RUN CHOWN -R debian-tor:debian-tor /var/lib/tor/hs ENTRYPOINT ["/start.sh"] diff --git a/packaging/docker/onion/start.sh b/packaging/docker/onion/start.sh index 6d14ae4..e4f1bf6 100644 --- a/packaging/docker/onion/start.sh +++ b/packaging/docker/onion/start.sh @@ -6,4 +6,4 @@ if ! [ -e /etc/tor/torrc ]; then echo "HiddenServicePort 80" >> /etc/tor/torrc fi -/usr/bin/tor -f /etc/tor/torrc +/usr/bin/tor -f /etc/tor/torrc --user debian-tor -- cgit v1.1