fix(minifirewall): Properly detect old minifirewall versions
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2667|1|2666|2|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/431//ansiblelint">Evolix » ansible-roles » unstable #431</a>
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2667|1|2666|2|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/431//ansiblelint">Evolix » ansible-roles » unstable #431</a>
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
95610e16be
commit
0c09763e87
|
@ -22,6 +22,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
* webapps/nextcloud: Set ownership and permissions of data directory
|
||||
* webapps/nextcloud: Add condition for config tasks
|
||||
* remount-usr: do not try to remount /usr RW if /usr is not a mounted partition
|
||||
* minifirewall: Fix nagios check for old versions of minifirewall
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ main() {
|
|||
append_details "configuration is up-to-date"
|
||||
summary_ok "minifirewall is started and configuration is up-to-date"
|
||||
else
|
||||
if echo "${check_result}" | grep --quiet --regexp 'usage'; then
|
||||
if echo "${check_result}" | grep --ignore-case --quiet --regexp 'usage'; then
|
||||
append_details "minifirewall is too old to check active configuration"
|
||||
else
|
||||
case "${check_rc}" in
|
||||
|
|
Loading…
Reference in a new issue