nginx conf updates for older installs fixes #888

This commit is contained in:
wh1te909 2021-12-21 19:04:00 +00:00
parent de42e2f747
commit a5d4a64f47
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
SCRIPT_VERSION="127"
SCRIPT_VERSION="128"
SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/update.sh'
LATEST_SETTINGS_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/api/tacticalrmm/tacticalrmm/settings.py'
YELLOW='\033[1;33m'
@ -174,6 +174,8 @@ if ! [[ $CHECK_NGINX_WORKER_CONN ]]; then
sudo sed -i 's/worker_connections.*/worker_connections 2048;/g' /etc/nginx/nginx.conf
fi
sudo sed -i 's/# server_names_hash_bucket_size.*/server_names_hash_bucket_size 64;/g' /etc/nginx/nginx.conf
HAS_PY39=$(which python3.9)
if ! [[ $HAS_PY39 ]]; then
printf >&2 "${GREEN}Updating to Python 3.9${NC}\n"