Add migrate script and update README

This commit is contained in:
Omar Roth committed 2019-02-10 12:46:58 -06:00
1 parent 3646395f1d
commit a384f6e5fd
4 files changed
+8 -1

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ if [ ! -f /var/lib/postgresql/data/setupFinished ]; then
su postgres -c 'psql invidious < config/sql/videos.sql'
su postgres -c 'psql invidious < config/sql/channel_videos.sql'
su postgres -c 'psql invidious < config/sql/users.sql'
su postgres -c 'psql invidious < config/sql/session_ids.sql'
su postgres -c 'psql invidious < config/sql/nonces.sql'
touch /var/lib/postgresql/data/setupFinished
echo "### invidious database setup finished"