hotfix for bad grep

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2019-02-05 00:17:54 -06:00
parent 607092ed32
commit 68d6c343a5
No known key found for this signature in database
GPG Key ID: 2193804FCA429855
1 changed files with 1 additions and 1 deletions

View File

@ -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