fix(minifirewall): Properly detect old minifirewall versions
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> Details
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Mathieu Trossevin 2023-12-14 16:59:55 +01:00
parent 95610e16be
commit 0c09763e87
Signed by: mtrossevin
GPG Key ID: D1DBB7EA828374E9
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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