mirror of
https://github.com/iv-org/invidious.git
synced 2026-10-20 20:58:01 +05:30
variable postgres username and database name (#2451)
This commit is contained in:
1 parent
b10f37bea9
commit
df968d1919
12 files changed
+70
-41
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user