Update after-install.sh
Make check for worker_rlimit_nofile silent
This commit is contained in:
parent
22524eaaba
commit
08c6ad67fb
@ -116,7 +116,7 @@ fi
|
||||
|
||||
sed -i 's/worker_connections 768/worker_connections 4000/g' /etc/nginx/nginx.conf
|
||||
|
||||
if grep "worker_rlimit_nofile" /etc/nginx/nginx.conf; then
|
||||
if grep -q "worker_rlimit_nofile" /etc/nginx/nginx.conf; then
|
||||
num=$(grep worker_rlimit_nofile /etc/nginx/nginx.conf | grep -o '[0-9]*')
|
||||
if [[ "$num" -lt 10000 ]]; then
|
||||
sed -i 's/worker_rlimit_nofile [0-9 ]*;/worker_rlimit_nofile 10000;/g' /etc/nginx/nginx.conf
|
||||
|
Loading…
Reference in New Issue
Block a user