mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:26 -04:00
variable postgres username and database name (#2451)
This commit is contained in:
parent
b10f37bea9
commit
df968d1919
12 changed files with 70 additions and 41 deletions
|
@ -1,10 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -eou pipefail
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE USER postgres;
|
||||
EOSQL
|
||||
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channels.sql
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/videos.sql
|
||||
psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < config/sql/channel_videos.sql
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue