From 5108ad8a92e82fbfa3f761eddf74a60a08c3f7b8 Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 25 Feb 2023 14:47:59 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- rootfs/usr/local/bin/entrypoint.sh | 1 + rootfs/usr/local/share/template-files/config/tor/torrc | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0c1ea9..d58934f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,7 +69,8 @@ RUN set -ex; \ if [ "${DISTRO_VERSION}" = "edge" ]; then echo "http://dl-cdn.alpinelinux.org/alpine/${DISTRO_VERSION}/testing" >>"/etc/apk/repositories" ; fi ; \ apk update --update-cache && apk add --no-cache ${PACK_LIST} -RUN echo +RUN mkdir -p /run/tor && \ + chown -Rf tor /run/tor RUN echo "$TIMEZONE" >"/etc/timezone" ; \ touch "/etc/profile" "/root/.profile" ; \ diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index 9d6b07c..8242e93 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -157,6 +157,7 @@ fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Create directories [ -d "/etc/ssl" ] || mkdir -p "$SSL_CONTAINER_DIR" +[ -d "/run/tor" ] || mkdir -p "/run/tor" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Create files diff --git a/rootfs/usr/local/share/template-files/config/tor/torrc b/rootfs/usr/local/share/template-files/config/tor/torrc index b409a2c..4425686 100644 --- a/rootfs/usr/local/share/template-files/config/tor/torrc +++ b/rootfs/usr/local/share/template-files/config/tor/torrc @@ -5,8 +5,8 @@ CookieAuthentication 1 CookieAuthFileGroupReadable 1 HashedControlPassword 16:C30604D1D90F341360A14D9A1048C1DF4A3CA2411444E52EE5B954C01F ##### directiories and files -ControlSocket /tmp/tor-control.sock -CookieAuthFile /tmp/tor-control.authcookie +ControlSocket /run/tor/control.sock +CookieAuthFile /run/tor/control.authcookie DataDirectory /data/tor ##### logging Log notice file /dev/sdout