summaryrefslogtreecommitdiffstats
path: root/newpgdb
diff options
context:
space:
mode:
Diffstat (limited to 'newpgdb')
-rwxr-xr-xnewpgdb7
1 files changed, 7 insertions, 0 deletions
diff --git a/newpgdb b/newpgdb
new file mode 100755
index 0000000..adbd3e1
--- /dev/null
+++ b/newpgdb
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cat <<CMD | psql
+create database $2;
+create role $2;
+grant $2 to $1;
+CMD