bugfix:TSG-7685:自检产生过多的worker进程

This commit is contained in:
fumingwei
2021-09-17 11:14:26 +08:00
parent 5d64951c47
commit 44309fb263

View File

@@ -74,6 +74,7 @@ link:
# Add the badssl.conf include to /etc/nginx/nginx.conf only if it is not already in the config.
# If /etc/nginx/nginx.conf does not exist, instead warn the user that it must be manually added.
if [ -f /etc/nginx/nginx.conf ]; then \
sed -i 's/worker_processes auto/worker_processes 1/' /etc/nginx/nginx.conf; \
if ! grep -q "include /var/www/badssl/_site/nginx.conf" /etc/nginx/nginx.conf; then \
sed -i '/# Virtual Host Configs/a\\tinclude /var/www/badssl/_site/nginx.conf;' /etc/nginx/nginx.conf; \
fi \