mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/tor: move to NAME_setup use
PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
PLUGIN_NAME= tor
|
||||
PLUGIN_VERSION= 1.8
|
||||
PLUGIN_REVISION= 3
|
||||
PLUGIN_REVISION= 4
|
||||
PLUGIN_COMMENT= The Onion Router
|
||||
PLUGIN_DEPENDS= tor ruby
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[start]
|
||||
command:/usr/local/opnsense/scripts/tor/setup.sh;/usr/local/etc/rc.d/tor start
|
||||
command:/usr/local/etc/rc.d/tor start
|
||||
parameters:
|
||||
type:script
|
||||
message:starting tor
|
||||
@@ -11,13 +11,13 @@ type:script
|
||||
message:stopping tor
|
||||
|
||||
[restart]
|
||||
command:/usr/local/opnsense/scripts/tor/setup.sh;/usr/local/etc/rc.d/tor restart
|
||||
command:/usr/local/etc/rc.d/tor restart
|
||||
parameters:
|
||||
type:script
|
||||
message:restarting tor
|
||||
|
||||
[status]
|
||||
command:/usr/local/etc/rc.d/tor status;exit 0
|
||||
command:/usr/local/etc/rc.d/tor status; exit 0
|
||||
parameters:
|
||||
type:script_output
|
||||
message:request tor status
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% if helpers.exists('OPNsense.tor.general.enabled') and OPNsense.tor.general.enabled == '1' %}
|
||||
tor_var_script="/usr/local/opnsense/scripts/tor/setup.sh"
|
||||
tor_setup="/usr/local/opnsense/scripts/tor/setup.sh"
|
||||
tor_enable="YES"
|
||||
{% else %}
|
||||
tor_enable="NO"
|
||||
|
||||
Reference in New Issue
Block a user