Skip to content

Commit 1a7c5e4

Browse files
committed
[fix] Incorporated changes suggested by AI reviewers
1 parent c6b1c9b commit 1a7c5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/common/init_command.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ elif [ "$MODULE_NAME" = 'nginx' ]; then
5858
nginx -g 'daemon off;'
5959
fi
6060
NGINX_EVENTS_BLOCK=$(printf "%b" "${NGINX_EVENTS_BLOCK:-}")
61-
NGINX_WORKER_RLIMIT_NOFILE="${NGINX_WORKER_RLIMIT_NOFILE:-__UNSET__}"
61+
export NGINX_WORKER_RLIMIT_NOFILE="${NGINX_WORKER_RLIMIT_NOFILE:-__UNSET__}"
6262
envsubst </etc/nginx/nginx.template.conf >/etc/nginx/nginx.conf
63-
sed -i '/__UNSET__/d; /^worker_rlimit_nofile *$/d; /^[ \t]*$/d' /etc/nginx/nginx.conf
63+
sed -i '/__UNSET__/d; /^worker_rlimit_nofile *$/d; /^[[:space:]]*$/d' /etc/nginx/nginx.conf
6464
envsubst_create_config /etc/nginx/openwisp.internal.template.conf internal INTERNAL
6565
if [ "$SSL_CERT_MODE" = 'Yes' ]; then
6666
nginx_prod

0 commit comments

Comments
 (0)