Skip to content

Commit

Permalink
archlinux fix
Browse files Browse the repository at this point in the history
  • Loading branch information
= authored and lesion committed Jun 25, 2020
1 parent 0ccdfb3 commit b424287
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usr/sbin/orjail
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ if ! ip netns list | eno grep \\b"$NAME"\\b; then
print G " * Tor version is $TORVERSION"

TORCONFIGFILE=$(mktemp /tmp/torXXXXXX)
chown "$USERNAME" "$TORCONFIGFILE"
if [ "$HOSTTORRC" = "y" ] && [ -f /etc/tor/torrc ]; then
echo '%include /etc/tor/torrc' >> "$TORCONFIGFILE"
fi
Expand All @@ -581,6 +580,10 @@ EOF
echo "HiddenServiceVersion 3" >> "$TORCONFIGFILE";
echo "HiddenServicePort $HSERVICEPORT $IPNETNS:$HSERVICEPORT"; } >> "$TORCONFIGFILE"
fi

# this chown causes issues in archlinux where tmpfs seems to be protected...
# so call this only after the config file is ready. see PR#71
chown "$USERNAME" "$TORCONFIGFILE"

# reuse tor host's cache
if [ -d "/var/lib/tor" ]; then
Expand Down

0 comments on commit b424287

Please sign in to comment.