diff --git a/docker/containers/tactical-nginx/entrypoint.sh b/docker/containers/tactical-nginx/entrypoint.sh index 3d301065..471084b4 100644 --- a/docker/containers/tactical-nginx/entrypoint.sh +++ b/docker/containers/tactical-nginx/entrypoint.sh @@ -35,7 +35,7 @@ nginxdefaultconf='/etc/nginx/nginx.conf' # increase default nginx worker connections /bin/bash -c "sed -i 's/worker_connections.*/worker_connections ${WORKER_CONNECTIONS};/g' $nginxdefaultconf" -sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ +sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ /' $nginxdefaultconf if [[ $DEV -eq 1 ]]; then diff --git a/install.sh b/install.sh index 82e8777f..4adcf8d2 100644 --- a/install.sh +++ b/install.sh @@ -178,7 +178,7 @@ nginxdefaultconf='/etc/nginx/nginx.conf' sudo sed -i '/worker_rlimit_nofile.*/d' $nginxdefaultconf sudo sed -i 's/worker_connections.*/worker_connections 2048;/g' $nginxdefaultconf sudo sed -i 's/# server_names_hash_bucket_size.*/server_names_hash_bucket_size 64;/g' $nginxdefaultconf -sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ +sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ /' $nginxdefaultconf print_green 'Installing NodeJS' diff --git a/restore.sh b/restore.sh index 92b87470..c1f877b3 100755 --- a/restore.sh +++ b/restore.sh @@ -132,7 +132,7 @@ CHECK_NGINX_NOLIMIT=$(grep "worker_rlimit_nofile 1000000" $nginxdefaultconf) if ! [[ $CHECK_NGINX_NOLIMIT ]]; then sudo sed -i '/worker_rlimit_nofile.*/d' $nginxdefaultconf printf >&2 "${GREEN}Increasing nginx open file limit${NC}\n" -sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ +sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ /' $nginxdefaultconf fi rmmdomain=$(grep server_name /etc/nginx/sites-available/rmm.conf | grep -v 301 | head -1 | tr -d " \t" | sed 's/.*server_name//' | tr -d ';') diff --git a/update.sh b/update.sh index 105813a1..87dd39f5 100644 --- a/update.sh +++ b/update.sh @@ -176,7 +176,7 @@ CHECK_NGINX_NOLIMIT=$(grep "worker_rlimit_nofile 1000000" $nginxdefaultconf) if ! [[ $CHECK_NGINX_NOLIMIT ]]; then sudo sed -i '/worker_rlimit_nofile.*/d' $nginxdefaultconf printf >&2 "${GREEN}Increasing nginx open file limit${NC}\n" -sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ +sudo sed -i '1s/^/worker_rlimit_nofile 1000000;\ /' $nginxdefaultconf fi