From 3a6fd2125031cc77efb52b5d6628c8e2dbb575c0 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 29 Dec 2022 13:45:35 +0000 Subject: [PATCH] fix install script. --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 8694f5b1fa..72b31972f5 100755 --- a/install.sh +++ b/install.sh @@ -9,6 +9,10 @@ git pull docker compose pull + +# Create database if it does not exists +sudo docker compose up -d postgres && sleep 30 && sudo docker compose exec postgres `psql postgresql://$DATABASE_USERNAME:$DATABASE_PASSWORD@localhost:5400/postgres -c 'CREATE DATABASE oneuptimedb'` || echo "Database created" + # echo "Checking if async migrations are up to date" # sudo -E docker compose run init