enable django admin during install so that it installs properly, disable it at end of install
This commit is contained in:
parent
e9f6e7943a
commit
7bdd2038ef
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_VERSION="41"
|
SCRIPT_VERSION="42"
|
||||||
SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/install.sh'
|
SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/install.sh'
|
||||||
|
|
||||||
sudo apt install -y curl wget dirmngr gnupg lsb-release
|
sudo apt install -y curl wget dirmngr gnupg lsb-release
|
||||||
|
@ -366,7 +366,7 @@ MESH_USERNAME = "${meshusername}"
|
||||||
MESH_SITE = "https://${meshdomain}"
|
MESH_SITE = "https://${meshdomain}"
|
||||||
REDIS_HOST = "localhost"
|
REDIS_HOST = "localhost"
|
||||||
KEEP_SALT = False
|
KEEP_SALT = False
|
||||||
ADMIN_ENABLED = False
|
ADMIN_ENABLED = True
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
echo "${localvars}" > /rmm/api/tacticalrmm/tacticalrmm/local_settings.py
|
echo "${localvars}" > /rmm/api/tacticalrmm/tacticalrmm/local_settings.py
|
||||||
|
@ -811,6 +811,8 @@ python manage.py reload_nats
|
||||||
deactivate
|
deactivate
|
||||||
sudo systemctl start nats.service
|
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'
|
print_green 'Restarting services'
|
||||||
for i in rmm.service celery.service celerybeat.service natsapi.service
|
for i in rmm.service celery.service celerybeat.service natsapi.service
|
||||||
|
|
Loading…
Reference in New Issue