check_sshpermitrootno: same check for buster as stretch
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing

This commit is contained in:
Benoît S. 2019-07-05 10:22:38 +02:00
parent e7bf343048
commit bed8d9d59a

View file

@ -1053,7 +1053,7 @@ check_usrsharescripts() {
test "$expected" = "$actual" || failed "IS_USRSHARESCRIPTS"
}
check_sshpermitrootno() {
if is_debian_stretch; then
if is_debian_stretch || is_debian_buster; then
if grep -q "^PermitRoot" /etc/ssh/sshd_config; then
grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config || failed "IS_SSHPERMITROOTNO"
fi