From 7333c7bcf53d8e42f27794016cf13ac432c04ce1 Mon Sep 17 00:00:00 2001 From: redxef Date: Sat, 19 Aug 2023 01:59:41 +0200 Subject: [PATCH] Remove echo to not break command. --- start-nginx.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start-nginx.sh b/start-nginx.sh index 2fabf15..c513207 100755 --- a/start-nginx.sh +++ b/start-nginx.sh @@ -37,8 +37,7 @@ run_nginx() { run_inotifywait() { while find "$dstdir" -type f -exec \ - echo 'Monitoring the following files for changes:' - sed -En '/ssl_certificate/ s/^\s*ssl_certificate(_key)? (.*);.*$/\2/p' {} \; | sort | uniq | tee /dev/stderr \ + sed -En '/ssl_certificate/ s/^\s*ssl_certificate(_key)? (.*);.*$/\2/p' {} \; | sort | uniq | tee /dev/stderr | \ inotifywait --fromfile=- -e close_write -e modify; do nginx -s reload done