mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-04 22:28:29 -06:00
16 lines
432 B
Bash
Executable File
16 lines
432 B
Bash
Executable File
#!/bin/bash
|
|
|
|
dbpass=$(openssl rand -hex 20)
|
|
|
|
createdb invidious
|
|
#createuser kemal
|
|
psql -c "CREATE USER kemal WITH PASSWORD '$dbpass';"
|
|
psql invidious < config/sql/channels.sql
|
|
psql invidious < config/sql/videos.sql
|
|
psql invidious < config/sql/channel_videos.sql
|
|
psql invidious < config/sql/users.sql
|
|
psql invidious < config/sql/nonces.sql
|
|
|
|
# change password in config file
|
|
sed -i "s/replacethispassword/$dbpass/g" config/config.yml
|