From 858947b4620e6a91d5cb46c0bc70a911a2fc8787 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Oct 2015 23:18:35 +0000 Subject: [PATCH] Quotes --- src/freedombone-logging | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-logging b/src/freedombone-logging index 02ac74f2..dbd918b1 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -36,8 +36,8 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then if [ -d /etc/nginx ]; then for filename in /etc/nginx/sites-available/* ; do filename_domain=$(echo "$filename" | awk -F '/' '{print $5}') - sed -i 's|access_log.*|access_log /var/log/nginx/$filename_domain.access.log;|g' $filename - sed -i 's|warn_log.*|warn_log /var/log/nginx/$filename_domain.warn.log;|g' $filename + sed -i "s|access_log.*|access_log /var/log/nginx/$filename_domain.access.log;|g" $filename + sed -i "s|warn_log.*|warn_log /var/log/nginx/$filename_domain.warn.log;|g" $filename sed -i "s|error_log.*|error_log /var/log/nginx/$filename_domain.err.log;|g" $filename done fi