From 7bdd2038ef9bc8bcdd68be12eaf1c9bc6a8de200 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 10 Mar 2021 22:32:36 +0000 Subject: [PATCH] enable django admin during install so that it installs properly, disable it at end of install --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a026d423..d1efb06b 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_VERSION="41" +SCRIPT_VERSION="42" SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/install.sh' sudo apt install -y curl wget dirmngr gnupg lsb-release @@ -366,7 +366,7 @@ MESH_USERNAME = "${meshusername}" MESH_SITE = "https://${meshdomain}" REDIS_HOST = "localhost" KEEP_SALT = False -ADMIN_ENABLED = False +ADMIN_ENABLED = True EOF )" echo "${localvars}" > /rmm/api/tacticalrmm/tacticalrmm/local_settings.py @@ -811,6 +811,8 @@ python manage.py reload_nats deactivate sudo systemctl start nats.service +## disable django admin +sed -i 's/ADMIN_ENABLED = True/ADMIN_ENABLED = False/g' /rmm/api/tacticalrmm/tacticalrmm/local_settings.py print_green 'Restarting services' for i in rmm.service celery.service celerybeat.service natsapi.service