mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
Services: Monit: Settings - fix referential constraint issue when dependency is removed. closes https://github.com/opnsense/core/issues/7469
This commit is contained in:
parent
8201694e64
commit
9b495c788d
@ -130,7 +130,9 @@ check {{ service.type }} {{ service.name }} {{ path }}
|
||||
{% if service.depends is defined %}
|
||||
{% for dependency in service.depends.split(",") %}
|
||||
{% set dependency = helpers.getUUID(dependency) %}
|
||||
{% if dependency %}
|
||||
depends on {{dependency.name}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if service.start|default('') != '' %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user