run migrations during restore

This commit is contained in:
wh1te909 2021-04-08 05:57:16 +00:00
parent bb04ba528c
commit 6ff4d8f558
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
SCRIPT_VERSION="23"
SCRIPT_VERSION="24"
SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/restore.sh'
sudo apt update
@ -293,6 +293,7 @@ cd /rmm/api/tacticalrmm
pip install --no-cache-dir --upgrade pip
pip install --no-cache-dir setuptools==53.0.0 wheel==0.36.2
pip install --no-cache-dir -r /rmm/api/tacticalrmm/requirements.txt
python manage.py migrate
python manage.py collectstatic --no-input
python manage.py reload_nats
deactivate