summaryrefslogtreecommitdiffstats
path: root/lava-master/entrypoint.d/01_setup.sh
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2019-09-27 10:42:54 +0200
committerCorentin LABBE <clabbe@baylibre.com>2019-09-27 14:16:00 +0200
commit818704d9795bafbd3420c0848529dfcecaccb088 (patch)
treeea335fc91d75a28bf4f7179057c429cbbb4a7b57 /lava-master/entrypoint.d/01_setup.sh
parentff52436c8920d3e7477a0757eda5b4d4923997e5 (diff)
lava-master: automaticaly agree on DB migration
Diffstat (limited to 'lava-master/entrypoint.d/01_setup.sh')
-rwxr-xr-xlava-master/entrypoint.d/01_setup.sh2
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 $?