summaryrefslogtreecommitdiffstats
path: root/newpgdb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-09-10 12:02:58 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-09-10 12:02:58 +0200
commit09d7c955d907bf09c5a63c85d2f0c6d7e47ad6ea (patch)
tree84c13347b19e52c424752395b5fa1e77f98d175d /newpgdb
parenta65c4c428c03fbaa5ae1a4cf2848b39894cfdfd6 (diff)
downloadbin-09d7c955d907bf09c5a63c85d2f0c6d7e47ad6ea.tar.gz
bin-09d7c955d907bf09c5a63c85d2f0c6d7e47ad6ea.tar.xz
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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