mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-29 08:48:30 +00:00
parent
5cb57fb176
commit
629b0a8b41
@ -4,7 +4,7 @@ channel_threads: 1
|
||||
feed_threads: 1
|
||||
db:
|
||||
user: kemal
|
||||
password: kemal
|
||||
password: replacethispassword
|
||||
host: localhost
|
||||
port: 5432
|
||||
dbname: invidious
|
||||
|
7
setup.sh
7
setup.sh
@ -1,10 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
dbpass=$(openssl rand -hex 20)
|
||||
|
||||
createdb invidious
|
||||
#createuser kemal
|
||||
psql -c "CREATE USER kemal WITH PASSWORD '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
|
||||
|
Loading…
Reference in New Issue
Block a user