From ada627f444194feae2a4635e14fa437aaf4a6fd0 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 30 Jan 2021 04:28:27 +0000 Subject: [PATCH] forgot to enable natsapi during install --- install.sh | 1 + update.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 5eb3103e..adf33c58 100644 --- a/install.sh +++ b/install.sh @@ -788,6 +788,7 @@ sleep 5 MESHEXE=$(node node_modules/meshcentral/meshctrl.js --url wss://${meshdomain}:443 --loginuser ${meshusername} --loginpass ${MESHPASSWD} GenerateInviteLink --group TacticalRMM --hours 8) sudo systemctl enable nats.service +sudo systemctl enable natsapi.service cd /rmm/api/tacticalrmm source /rmm/api/env/bin/activate python manage.py initial_db_setup diff --git a/update.sh b/update.sh index d6f9a20e..813413c1 100644 --- a/update.sh +++ b/update.sh @@ -165,6 +165,9 @@ printf >&2 "${GREEN}Stopping ${i} service...${NC}\n" sudo systemctl stop ${i} done +# forgot to add this in install script. catch any installs that don't have it enabled and enable it +sudo systemctl enable natsapi.service + CHECK_NGINX_WORKER_CONN=$(grep "worker_connections 2048" /etc/nginx/nginx.conf) if ! [[ $CHECK_NGINX_WORKER_CONN ]]; then printf >&2 "${GREEN}Changing nginx worker connections to 2048${NC}\n"