From a17df0c610aec011e3472ce208af97b5666095cf Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Tue, 13 Oct 2020 10:59:25 +0200 Subject: [PATCH] Fix get_template output --- inventory.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory.sh b/inventory.sh index 6f0721a..d577629 100755 --- a/inventory.sh +++ b/inventory.sh @@ -55,7 +55,7 @@ get_htaccess() { # phpmyadmin or the default vhost template for example. get_template() { template_dirs="/etc /usr/share/scripts" - grep -RE '^[[:space:]]*(Order|Allow|Deny|Satisfy)[[:space:]]' \ + grep -lRE '^[[:space:]]*(Order|Allow|Deny|Satisfy)[[:space:]]' \ --exclude-dir=apache2 --exclude-dir=squid3 $template_dirs \ || true }