forked from evolix/ansible-roles
evocheck: Fix IS_SSHALLOWUSERS condition
This commit is contained in:
parent
53aab6f405
commit
b8b48bbcb9
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue