evocheck: Fix IS_SSHALLOWUSERS condition
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2628|4|2624|4|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/328//ansiblelint">Evolix » ansible-roles » unstable #328</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-08-23 16:17:51 +02:00
parent 53aab6f405
commit b8b48bbcb9
2 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* redis: replace errorneous ini_file module for Munin config, fix dedicted Munin config filename (z-XXX).
* evolinux-base, evolinux-users: Fix files mode under /etc/ssh/sshd_config.d
* evolinux-base: Fix file extension
* evocheck: Fix IS_SSHALLOWUSERS condition
### Removed

View File

@ -235,7 +235,7 @@ check_sshallowusers() {
grep -E -qir "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config.d \
|| failed "IS_SSHALLOWUSERS" "missing AllowUsers or AllowGroups directive in sshd_config.d/*"
grep -E -qir "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config \
|| failed "IS_SSHALLOWUSERS" "AllowUsers or AllowGroups directive present in sshd_config"
&& failed "IS_SSHALLOWUSERS" "AllowUsers or AllowGroups directive present in sshd_config"
else
grep -E -qir "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config /etc/ssh/sshd_config.d \
|| failed "IS_SSHALLOWUSERS" "missing AllowUsers or AllowGroups directive in sshd_config"