From d5a6063e5ed8bf951a415af9e3cf039778c899d3 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 9 Jul 2022 09:31:05 +0000 Subject: [PATCH] remove extra space --- docker/containers/tactical-nginx/entrypoint.sh | 2 +- install.sh | 2 +- restore.sh | 2 +- update.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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