* feat: move to postgresql * fix: repair fractional replace statement * fix: use pathlib to manipulate settings_local Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: do two string replacements, not one followed by another that throws away the first. Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: use pathlib again to manipulate settings_local Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: properly use assert (1/2) Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: properly use assert (2/2) Co-authored-by: Jennifer Richards <jennifer@painless-security.com> Co-authored-by: Jennifer Richards <jennifer@painless-security.com>
10 lines
278 B
Bash
Executable file
10 lines
278 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
psql -v ON_ERROR_STOP=1 --username postgres --dbname postgres <<-EOSQL
|
|
CREATE USER django PASSWORD 'RkTkDPFnKpko';
|
|
CREATE DATABASE ietf;
|
|
GRANT ALL PRIVILEGES ON DATABASE ietf TO django;
|
|
ALTER USER django set search_path=ietf_utf8,django,public;
|
|
EOSQL
|