Commit bcb39d0c authored by Franco Fichtner's avatar Franco Fichtner

services: don't set bootup routines when disabled; closes #1000

parent d4d27c14
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
{% from 'OPNsense/Macros/interface.macro' import physical_interface %} {% from 'OPNsense/Macros/interface.macro' import physical_interface %}
{% if helpers.exists('OPNsense.IDS.general') and OPNsense.IDS.general.enabled|default("0") == "1" %} {% if helpers.exists('OPNsense.IDS.general') and OPNsense.IDS.general.enabled|default("0") == "1" %}
suricata_enable="YES" suricata_enable="YES"
suricata_opnsense_bootup_run="/usr/local/opnsense/scripts/suricata/setup.sh"
{% if OPNsense.IDS.general.ips|default("0") == "1" %} {% if OPNsense.IDS.general.ips|default("0") == "1" %}
# IPS mode, switch to netmap # IPS mode, switch to netmap
...@@ -31,5 +32,3 @@ suricata_flags="-D {% ...@@ -31,5 +32,3 @@ suricata_flags="-D {%
{% else %} {% else %}
suricata_enable="NO" suricata_enable="NO"
{% endif %} {% endif %}
suricata_opnsense_bootup_run="/usr/local/opnsense/scripts/suricata/setup.sh"
squid_enable={% if helpers.exists('OPNsense.proxy.general.enabled') and OPNsense.proxy.general.enabled|default("0") == "1" %}YES{% else %}NO{% endif %} {% if helpers.exists('OPNsense.proxy.general.enabled') and OPNsense.proxy.general.enabled|default("0") == "1" %}
squid_enable=YES
squid_opnsense_bootup_run="/usr/local/opnsense/scripts/proxy/setup.sh" squid_opnsense_bootup_run="/usr/local/opnsense/scripts/proxy/setup.sh"
{% else %}
squid_enable=NO
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment