diff --git a/start-nginx.sh b/start-nginx.sh index a809886..98fca02 100755 --- a/start-nginx.sh +++ b/start-nginx.sh @@ -38,7 +38,7 @@ run_nginx() { run_inotifywait() { while find "$dstdir" -type f -exec \ sed -En '/ssl_certificate/ s/^\s*ssl_certificate(_key)? (.*);.*$/\2/p' {} \; | sort | uniq | \ - inotifywait --fromfile=-; do + inotifywait --fromfile=- -e close_write -e modify; do nginx -s reload done }