author | durandn |
Wed, 27 May 2015 15:34:06 +0200 | |
changeset 8 | 5a0cbbe0922a |
permissions | -rw-r--r-- |
8
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
2 |
|
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
3 |
DB=$1; |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
4 |
su postgres -c "dropdb $DB --if-exists" |
5a0cbbe0922a
CAS Authentication (normal and proxy) + local Homestead vm
durandn
parents:
diff
changeset
|
5 |
su postgres -c "createdb -O homestead '$DB' || true" |