index
:
bin
master
My scripts
Florian Pritz
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
newpgdb
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'newpgdb')
-rwxr-xr-x
newpgdb
7
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