From 818704d9795bafbd3420c0848529dfcecaccb088 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Fri, 27 Sep 2019 10:42:54 +0200 Subject: lava-master: automaticaly agree on DB migration --- lava-master/entrypoint.d/01_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lava-master/entrypoint.d/01_setup.sh') 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 $? -- cgit 1.2.3-korg