summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-01-13 10:45:59 +0100
committerCorentin LABBE <clabbe@baylibre.com>2020-01-16 11:42:43 +0100
commita681d6e6e7d11743b6d893a68dc98347c68b779c (patch)
tree814a0fe068cccf935685cbd74568144e41172025
parent87ebea7e5ec96558bd2c9688fecd9b3b2d8e2a3d (diff)
master: handle migrations
This patch permits to handle migrations when upgrading.
-rwxr-xr-xlava-master/entrypoint.d/01_setup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lava-master/entrypoint.d/01_setup.sh b/lava-master/entrypoint.d/01_setup.sh
index 4755bc4..eb5c8ef 100755
--- a/lava-master/entrypoint.d/01_setup.sh
+++ b/lava-master/entrypoint.d/01_setup.sh
@@ -19,6 +19,8 @@ if [ -e /root/backup/db_lavaserver ];then
rm -r /var/lib/lava-server/default/media/job-output/*
tar xzf /root/backup/joboutput.tar.gz || exit $?
fi
+ lava-server manage makemigrations
+ yes yes | lava-server manage migrate || exit $?
if [ -e /root/backup/devices.tar.gz ];then
echo "INFO: Restoring devices files"