Skip to content

Commit

Permalink
Merge pull request #3986 from spikeheap/3985_psql_datastore_ro_user
Browse files Browse the repository at this point in the history
Use shell script for datastore DB creation in Docker
  • Loading branch information
wardi committed Jan 11, 2018
2 parents adf6347 + 65139aa commit 3921dd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
@@ -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 3921dd9

Please sign in to comment.