mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
rc: use new _setup and repair missing setup.sh in Monit check #5917
Also see: https://github.com/opnsense/src/commit/3edcfbc578f
This commit is contained in:
parent
fe52702a8b
commit
af959da8b6
@ -25,6 +25,6 @@ type:script
|
||||
message:reload monit configuration
|
||||
|
||||
[check]
|
||||
command:/usr/local/bin/monit -t 2>&1; exit 0
|
||||
command:/usr/local/opnsense/scripts/OPNsense/Monit/setup.sh; /usr/local/bin/monit -t 2>&1; exit 0
|
||||
type:script_output
|
||||
message:testing monit configuration
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{# Macro import #}
|
||||
{% from 'OPNsense/Macros/interface.macro' import physical_interface %}
|
||||
{% if not helpers.empty('OPNsense.IDS.general.enabled') %}
|
||||
suricata_precmd="/usr/local/opnsense/scripts/suricata/setup.sh"
|
||||
suricata_setup="/usr/local/opnsense/scripts/suricata/setup.sh"
|
||||
suricata_enable="YES"
|
||||
{% if OPNsense.IDS.general.ips|default("0") == "1" %}
|
||||
# IPS mode, switch to netmap
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# DO NOT EDIT THIS FILE -- OPNsense auto-generated file
|
||||
{% if helpers.exists('OPNsense.monit.general.enabled') and OPNsense.monit.general.enabled|default("0") == "1" %}
|
||||
monit_precmd="/usr/local/opnsense/scripts/OPNsense/Monit/setup.sh"
|
||||
monit_setup="/usr/local/opnsense/scripts/OPNsense/Monit/setup.sh"
|
||||
monit_enable="YES"
|
||||
{% else %}
|
||||
monit_enable="NO"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{% if helpers.exists('OPNsense.proxy.general.enabled') and OPNsense.proxy.general.enabled|default("0") == "1" %}
|
||||
squid_precmd="/usr/local/opnsense/scripts/proxy/setup.sh"
|
||||
squid_setup="/usr/local/opnsense/scripts/proxy/setup.sh"
|
||||
squid_enable="YES"
|
||||
{% else %}
|
||||
squid_enable="NO"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user