Update entrypoint.postgres.sh (#843)

* Update entrypoint.postgres.sh
This commit is contained in:
Tommy 2019-10-22 11:37:26 +00:00 committed by Omar Roth
parent 159b4f9734
commit d82f86dcd9
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +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/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