From 6ff4d8f55882e5dca2514c68e4b47305e77ec19a Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 8 Apr 2021 05:57:16 +0000 Subject: [PATCH] run migrations during restore --- restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index b74df4a0..1bb40dd5 100755 --- a/restore.sh +++ b/restore.sh @@ -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