mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Install: replace legacy SQL files with --migrate (#306)
This commit is contained in:
parent
df838b8b2d
commit
51728d7a58
1 changed files with 6 additions and 10 deletions
|
@ -148,15 +148,6 @@ systemctl enable --now postgresql
|
||||||
sudo -i -u postgres
|
sudo -i -u postgres
|
||||||
psql -c "CREATE USER kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
|
psql -c "CREATE USER kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
|
||||||
createdb -O kemal invidious
|
createdb -O kemal invidious
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/channels.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/videos.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/channel_videos.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/users.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/session_ids.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/nonces.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/annotations.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/playlists.sql
|
|
||||||
psql invidious kemal < /home/invidious/invidious/config/sql/playlist_videos.sql
|
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -166,8 +157,13 @@ exit
|
||||||
su - invidious
|
su - invidious
|
||||||
cd invidious
|
cd invidious
|
||||||
make
|
make
|
||||||
|
|
||||||
|
# Configure config/config.yml as you like
|
||||||
cp config/config.example.yml config/config.yml
|
cp config/config.example.yml config/config.yml
|
||||||
# Configure config/config.yml how you want
|
|
||||||
|
# Deploy the database
|
||||||
|
./invidious --migrate
|
||||||
|
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue