summaryrefslogtreecommitdiffstats
path: root/newpgdb
blob: adbd3e1b1fe6c48e6893137b5a58f2a1755bdfe8 (plain)
1
2
3
4
5
6
7
#!/bin/bash

cat <<CMD | psql
create database $2;
create role $2;
grant $2 to $1;
CMD