Skip to content

Commit

Permalink
Call the datastore creation PSQL comands from a shell script, to allo…
Browse files Browse the repository at this point in the history
…w variable interpolation
  • Loading branch information
spikeheap committed Jan 10, 2018
1 parent ae12f82 commit 65139aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
CREATE ROLE datastore_ro NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN PASSWORD '$DS_RO_PASS';
CREATE DATABASE datastore OWNER ckan ENCODING 'utf-8';
GRANT ALL PRIVILEGES ON DATABASE datastore TO ckan;
EOSQL

This file was deleted.

0 comments on commit 65139aa

Please sign in to comment.