diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-04-06 07:38:33 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-04-06 07:38:33 -0500 |
| commit | c5001f3620d6a9d4d24ce63afdf892a690b16440 (patch) | |
| tree | 39f34e178887209851bd2b0aba73a80412e0ea1d /docker/entrypoint.postgres.sh | |
| parent | 8d5f9418297ac8b43540c571b466da82dd9fac0f (diff) | |
| download | invidious-c5001f3620d6a9d4d24ce63afdf892a690b16440.tar.gz invidious-c5001f3620d6a9d4d24ce63afdf892a690b16440.tar.bz2 invidious-c5001f3620d6a9d4d24ce63afdf892a690b16440.zip | |
Add role to psql scripts
Diffstat (limited to 'docker/entrypoint.postgres.sh')
| -rwxr-xr-x | docker/entrypoint.postgres.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docker/entrypoint.postgres.sh b/docker/entrypoint.postgres.sh index 8f987201..64bcfe48 100755 --- a/docker/entrypoint.postgres.sh +++ b/docker/entrypoint.postgres.sh @@ -12,12 +12,12 @@ if [ ! -f /var/lib/postgresql/data/setupFinished ]; then >&2 echo "### importing table schemas" su postgres -c 'createdb invidious' su postgres -c 'psql -c "CREATE USER kemal WITH PASSWORD '"'kemal'"'"' - su postgres -c 'psql invidious < config/sql/channels.sql' - su postgres -c 'psql invidious < config/sql/videos.sql' - su postgres -c 'psql invidious < config/sql/channel_videos.sql' - su postgres -c 'psql invidious < config/sql/users.sql' - su postgres -c 'psql invidious < config/sql/session_ids.sql' - su postgres -c 'psql invidious < config/sql/nonces.sql' + su postgres -c 'psql invidious kemal < config/sql/channels.sql' + su postgres -c 'psql invidious kemal < config/sql/videos.sql' + su postgres -c 'psql invidious kemal < config/sql/channel_videos.sql' + su postgres -c 'psql invidious kemal < config/sql/users.sql' + su postgres -c 'psql invidious kemal < config/sql/session_ids.sql' + su postgres -c 'psql invidious kemal < config/sql/nonces.sql' touch /var/lib/postgresql/data/setupFinished echo "### invidious database setup finished" exit |
