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"