summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/docker/onion/Dockerfile1
-rw-r--r--packaging/docker/onion/start.sh2
2 files changed, 2 insertions, 1 deletions
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