Skip to content

Commit

Permalink
add db init script
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Jul 20, 2020
1 parent 51f1318 commit 65e643b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infra/k8s/database/init-scripts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
create-schedule-user.sh: |
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER fkschedule with password '$FKSCHEDULE_PASSWORD';
GRANT select ON fk_video, fk_organization, fk_scheduleitem TO fkschedule;
EOSQL

0 comments on commit 65e643b

Please sign in to comment.