diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2020-01-13 10:45:59 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2020-01-16 11:42:43 +0100 |
commit | a681d6e6e7d11743b6d893a68dc98347c68b779c (patch) | |
tree | 814a0fe068cccf935685cbd74568144e41172025 /lava-master/entrypoint.d/01_setup.sh | |
parent | 87ebea7e5ec96558bd2c9688fecd9b3b2d8e2a3d (diff) |
master: handle migrations
This patch permits to handle migrations when upgrading.
Diffstat (limited to 'lava-master/entrypoint.d/01_setup.sh')
-rwxr-xr-x | lava-master/entrypoint.d/01_setup.sh | 2 |
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" |