From 68d6c343a549f1f920d1b9e33b18be6aba323e48 Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Tue, 5 Feb 2019 00:17:54 -0600 Subject: [PATCH] hotfix for bad grep Signed-off-by: Adam Hill --- bash_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_functions.sh b/bash_functions.sh index 82370c3..ad15a20 100644 --- a/bash_functions.sh +++ b/bash_functions.sh @@ -181,7 +181,7 @@ setup_dnsmasq_user() { # Run DNSMASQ as root user to avoid SHM permission issues if grep -r -q '^\s*user=' /etc/dnsmasq.* ; then # Change user that had been set previously to root - for f in $(grep -L '^\s*user=' /etc/dnsmasq.*); do + for f in $(grep -r -l '^\s*user=' /etc/dnsmasq.*); do sed -i "/^\s*user=/ c\user=${DNSMASQ_USER}" "${f}" done else