From b5734b175c0f8351aaef0254431c0a246447a21d Mon Sep 17 00:00:00 2001 From: Mathew Burnett Date: Sat, 12 Nov 2022 12:18:39 +0000 Subject: [PATCH] fixed sed mistakes --- overlay/etc/nginx/sites-available/10_cache.conf | 2 +- overlay/hooks/entrypoint-pre.d/10_setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/overlay/etc/nginx/sites-available/10_cache.conf b/overlay/etc/nginx/sites-available/10_cache.conf index 8f9bbf7..3db7e51 100644 --- a/overlay/etc/nginx/sites-available/10_cache.conf +++ b/overlay/etc/nginx/sites-available/10_cache.conf @@ -3,7 +3,7 @@ server { listen 80 reuseport; - access_log /data/logs/access.log cachelog $LOG_PARAMS; + access_log /data/logs/access.log cachelog LOG_PARAMS; error_log /data/logs/error.log; include /etc/nginx/sites-available/cache.conf.d/*.conf; diff --git a/overlay/hooks/entrypoint-pre.d/10_setup.sh b/overlay/hooks/entrypoint-pre.d/10_setup.sh index 0cfab07..182c407 100644 --- a/overlay/hooks/entrypoint-pre.d/10_setup.sh +++ b/overlay/hooks/entrypoint-pre.d/10_setup.sh @@ -19,4 +19,4 @@ sed -i "s/slice 1m;/slice ${CACHE_SLICE_SIZE};/" /etc/nginx/sites-available/cach sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/sites-available/cache.conf.d/10_root.conf sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/sites-available/upstream.conf.d/10_resolver.conf sed -i "s/UPSTREAM_DNS/${UPSTREAM_DNS}/" /etc/nginx/stream-available/10_sni.conf -sed -i "s/UPSTREAM_DNS/${LOG_PARAMS}/" /etc/nginx/sites-available/10_cache.conf \ No newline at end of file +sed -i "s/LOG_PARAMS/${LOG_PARAMS}/" /etc/nginx/sites-available/10_cache.conf \ No newline at end of file