summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2020-03-01 10:30:55 -0500
committerOmar Roth <omarroth@protonmail.com>2020-03-01 10:30:55 -0500
commit9de57021a371cdbf87a3a758b88ecd3c945eeea9 (patch)
tree81a37c6037591eb855210dd1a35eaaaf9788c027
parente21f77048579bc42f52d462bd3d41a68312fb157 (diff)
downloadinvidious-9de57021a371cdbf87a3a758b88ecd3c945eeea9.tar.gz
invidious-9de57021a371cdbf87a3a758b88ecd3c945eeea9.tar.bz2
invidious-9de57021a371cdbf87a3a758b88ecd3c945eeea9.zip
Update postgres setup
-rw-r--r--README.md3
-rwxr-xr-xdocker/entrypoint.postgres.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6f6e33dc..bc4b7b28 100644
--- a/README.md
+++ b/README.md
@@ -161,6 +161,9 @@ $ psql invidious kemal < config/sql/users.sql
$ psql invidious kemal < config/sql/session_ids.sql
$ psql invidious kemal < config/sql/nonces.sql
$ psql invidious kemal < config/sql/annotations.sql
+$ psql invidious kemal < config/sql/privacy.sql
+$ psql invidious kemal < config/sql/playlists.sql
+$ psql invidious kemal < config/sql/playlist_videos.sql
# Setup Invidious
$ shards update && shards install
diff --git a/docker/entrypoint.postgres.sh b/docker/entrypoint.postgres.sh
index f5fce309..1588c56c 100755
--- a/docker/entrypoint.postgres.sh
+++ b/docker/entrypoint.postgres.sh
@@ -19,9 +19,9 @@ if [ ! -f /var/lib/postgresql/data/setupFinished ]; then
su postgres -c 'psql invidious kemal < config/sql/session_ids.sql'
su postgres -c 'psql invidious kemal < config/sql/nonces.sql'
su postgres -c 'psql invidious kemal < config/sql/annotations.sql'
+ su postgres -c 'psql invidious kemal < config/sql/privacy.sql'
su postgres -c 'psql invidious kemal < config/sql/playlists.sql'
su postgres -c 'psql invidious kemal < config/sql/playlist_videos.sql'
- su postgres -c 'psql invidious kemal < config/sql/privacy.sql'
touch /var/lib/postgresql/data/setupFinished
echo "### invidious database setup finished"
exit