summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-08-25 11:19:10 +0200
committermakefu <root@pigstarter.de>2014-08-25 11:27:47 +0200
commit38bca6faee1463f14a3ccb52fefb42dfe4cd45ed (patch)
treef0826ced2e51259184717f39170e610c035a276e
parentf8dd9830207af9a384119b370c29a6fef8b71170 (diff)
create hidden service dir if not existing
-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