summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-04-19 12:29:23 +0200
committerLinus Nordberg <linus@nordberg.se>2015-04-19 12:29:23 +0200
commit44616f1af53fe7990510415a2b1320aa2ad800f9 (patch)
treebc78e5bb1d5b49023f581e8938d4cd0ffb13b9ca /packaging
parent553a1e83e8466c4291ba4dd4bc5a7524ed288583 (diff)
perms and user
Diffstat (limited to 'packaging')
-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