From e16d951da059c1a82eba7532b8a28dc51bcb7e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 4 Jun 2020 08:10:30 +0200 Subject: [PATCH] Create postgres user to avoid fatal warning --- docker/init-invidious-db.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/init-invidious-db.sh b/docker/init-invidious-db.sh index c07c7770..6c8ad3a7 100755 --- a/docker/init-invidious-db.sh +++ b/docker/init-invidious-db.sh @@ -1,6 +1,10 @@ #!/bin/sh set -eou pipefail +psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL + CREATE USER postgres; +EOSQL + psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channels.sql psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/videos.sql psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channel_videos.sql