Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
move torrc out of bp
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschoonhoven committed Apr 30, 2020
1 parent 5eac41a commit c0caccd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.13
0.0.14
9 changes: 4 additions & 5 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,14 @@ echo "Setting up hidden service"
cat > ${HOME}/hidden_service/private_key <<EPK
\${HIDDEN_PRIVATE_KEY}
EPK
echo \${HIDDEN_DOT_ONION} > ${HOME}/hidden_service/hostname
echo "HiddenServiceDir ${HOME}/hidden_service/" > $HOME/tor/etc/tor/torrc
echo "HiddenServicePort 80 127.0.0.1:8080" >> $HOME/tor/etc/tor/torrc
echo "HiddenServicePort 443 127.0.0.1:8081" >> $HOME/tor/etc/tor/torrc
echo "HiddenServiceVersion 2" >> $HOME/tor/etc/tor/torrc
echo "Compiling torrc"
erb config/torrc.erb > ${HOME}/tor/etc/tor/torrc
# Use -f to be safe here.
$HOME/tor/bin/tor -f $HOME/tor/etc/tor/torrc
$HOME/tor/bin/tor -f ${HOME}/tor/etc/tor/torrc
EOF

chmod a+x ${BUILD_DIR}/tor/bin/${RUN_COMMAND}
Expand Down

0 comments on commit c0caccd

Please sign in to comment.