Commit 325eebb3 authored by Franco Fichtner's avatar Franco Fichtner

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

(cherry picked from commit bcb39d0c)
parent f5c2ddb4
......@@ -2,6 +2,7 @@
{% from 'OPNsense/Macros/interface.macro' import physical_interface %}
{% if helpers.exists('OPNsense.IDS.general') and OPNsense.IDS.general.enabled|default("0") == "1" %}
suricata_enable="YES"
suricata_opnsense_bootup_run="/usr/local/opnsense/scripts/suricata/setup.sh"
{% if OPNsense.IDS.general.ips|default("0") == "1" %}
# IPS mode, switch to netmap
......@@ -31,5 +32,3 @@ suricata_flags="-D {%
{% else %}
suricata_enable="NO"
{% 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"
{% 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