diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-09-27 10:42:54 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2019-09-27 14:16:00 +0200 |
commit | 818704d9795bafbd3420c0848529dfcecaccb088 (patch) | |
tree | ea335fc91d75a28bf4f7179057c429cbbb4a7b57 /lava-master | |
parent | ff52436c8920d3e7477a0757eda5b4d4923997e5 (diff) |
lava-master: automaticaly agree on DB migration
Diffstat (limited to 'lava-master')
-rwxr-xr-x | lava-master/entrypoint.d/01_setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lava-master/entrypoint.d/01_setup.sh b/lava-master/entrypoint.d/01_setup.sh index be950b7..4755bc4 100755 --- a/lava-master/entrypoint.d/01_setup.sh +++ b/lava-master/entrypoint.d/01_setup.sh @@ -14,7 +14,7 @@ fi if [ -e /root/backup/db_lavaserver ];then echo "Restore database from backup" sudo -u postgres psql < /root/backup/db_lavaserver || exit $? - lava-server manage migrate || exit $? + yes yes | lava-server manage migrate || exit $? echo "Restore jobs output from backup" rm -r /var/lib/lava-server/default/media/job-output/* tar xzf /root/backup/joboutput.tar.gz || exit $? |