From 971527ef775b4edfa03bb6fa54c893a59620fa0c Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 25 Feb 2023 15:06:03 -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/start-tor.sh | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d58934f..e0c1ea9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,8 +69,7 @@ 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 mkdir -p /run/tor && \ - chown -Rf tor /run/tor +RUN echo RUN echo "$TIMEZONE" >"/etc/timezone" ; \ touch "/etc/profile" "/root/.profile" ; \ diff --git a/rootfs/usr/local/bin/start-tor.sh b/rootfs/usr/local/bin/start-tor.sh index 74c7c70..5dc0442 100755 --- a/rootfs/usr/local/bin/start-tor.sh +++ b/rootfs/usr/local/bin/start-tor.sh @@ -159,7 +159,8 @@ fi [ -d "$BACKUP_DIR" ] || mkdir -p "$BACKUP_DIR" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Post copy commands - +install -Z -m 02700 -o root -g root -d "/run/tor" +install -Z -m 755 -o root -g root -d "/data/tor/hidden_service" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Initialized [ -d "/data" ] && touch "/data/.docker_has_run"