From 057cb7026ad9cd8e51af82aa5120b756cebdea84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Thu, 21 Mar 2019 23:56:21 +0100 Subject: [PATCH] even more quotes --- evocheck.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 30c7e85..0fabae7 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -389,11 +389,11 @@ if is_debian; then fi if [ "$IS_ALERT5BOOT" = 1 ]; then - grep -q ^date /etc/rc2.d/S*alert5 || failed "IS_ALERT5BOOT" + grep -q "^date" /etc/rc2.d/S*alert5 || failed "IS_ALERT5BOOT" fi if [ "$IS_ALERT5MINIFW" = 1 ]; then - grep -q ^/etc/init.d/minifirewall /etc/rc2.d/S*alert5 \ + grep -q "^/etc/init.d/minifirewall" /etc/rc2.d/S*alert5 \ || failed "IS_ALERT5MINIFW" fi @@ -426,7 +426,7 @@ if is_debian; then fi if [ "$IS_GRSECPROCS" = 1 ]; then - uname -a | grep -q grsec && ( grep -q ^command.check_total_procs..sudo /etc/nagios/nrpe.cfg && grep -A1 "^\[processes\]" /etc/munin/plugin-conf.d/munin-node | grep -q "^user root" || failed "IS_GRSECPROCS" ) + uname -a | grep -q grsec && ( grep -q "^command.check_total_procs..sudo" /etc/nagios/nrpe.cfg && grep -A1 "^\[processes\]" /etc/munin/plugin-conf.d/munin-node | grep -q "^user root" || failed "IS_GRSECPROCS" ) fi if [ "$IS_APACHEMUNIN" = 1 ]; then @@ -774,7 +774,7 @@ if is_debian; then if [ "$IS_EVOLINUXSUDOGROUP" = 1 ]; then if is_debian_stretch; then - (grep -q ^evolinux-sudo: /etc/group \ + (grep -q "^evolinux-sudo:" /etc/group \ && grep -q '^%evolinux-sudo ALL=(ALL:ALL) ALL' /etc/sudoers.d/evolinux) || failed "IS_EVOLINUXSUDOGROUP" fi fi