summaryrefslogtreecommitdiffstats
path: root/ship/lib/tor
diff options
context:
space:
mode:
Diffstat (limited to 'ship/lib/tor')
-rw-r--r--ship/lib/tor1
1 files changed, 1 insertions, 0 deletions
diff --git a/ship/lib/tor b/ship/lib/tor
index 8d9e33f1..0911e92a 100644
--- a/ship/lib/tor
+++ b/ship/lib/tor
@@ -7,6 +7,7 @@ torrc=${torrc:-/etc/tor/torrc}
hidden_service_dir=${hidden_service_dir:-/var/lib/tor/hidden_service/}
configure_hidden_service(){
+ mkdir -p "$hidden_service_dir"
if ! grep -q '^HiddenService' "$torrc" ;then
info "adding hidden service to $torrc"
cat >> "$torrc" << EOF