tor: fix setup.sh, wrong directory structure

PR: https://forum.opnsense.org/index.php?topic=6207.0
This commit is contained in:
Franco Fichtner 2017-10-20 19:04:54 +00:00
parent 463dd0b21a
commit 19043bb281
7 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ chown _tor:_tor /var/log/tor.log
chown _tor:_tor /var/run/tor
# create Onion service dirs:
/usr/local/opnsense/service/scripts/tor/make_hidden_service_dirs.php
/usr/local/opnsense/scripts/tor/make_hidden_service_dirs.php
# required to access the pf device for nat
/usr/sbin/pw groupmod proxy -m _tor

View file

@ -23,13 +23,13 @@ type:script_output
message:request tor status
[genkey]
command:/usr/local/opnsense/service/scripts/tor/gen_key
command:/usr/local/opnsense/scripts/tor/gen_key
parameters:
type:script_output
message:generate Tor control key
[gethostnames]
command:/usr/local/opnsense/service/scripts/tor/get_hostnames
command:/usr/local/opnsense/scripts/tor/get_hostnames
parameters:
type:script_output
message:Query hostnames of Onion services

View file

@ -1,6 +1,6 @@
{% if helpers.exists('OPNsense.tor.general.enabled') and OPNsense.tor.general.enabled == '1' %}
tor_enable="YES"
tor_opnsense_bootup_run="/usr/local/opnsense/service/scripts/tor/setup.sh"
tor_opnsense_bootup_run="/usr/local/opnsense/scripts/tor/setup.sh"
{% else %}
tor_enable="NO"
{% endif %}