diff options
author | makefu <root@pigstarter.de> | 2014-08-25 11:19:10 +0200 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2014-08-25 11:27:47 +0200 |
commit | 38bca6faee1463f14a3ccb52fefb42dfe4cd45ed (patch) | |
tree | f0826ced2e51259184717f39170e610c035a276e /ship/lib | |
parent | f8dd9830207af9a384119b370c29a6fef8b71170 (diff) |
create hidden service dir if not existing
Diffstat (limited to 'ship/lib')
-rw-r--r-- | ship/lib/tor | 1 |
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 |