bugfix:TSG-7685:自检产生过多的worker进程
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user