authserver/homestead/scripts/create-postgres.sh
author ymh <ymh.work@gmail.com>
Fri, 28 Aug 2015 18:08:21 +0200
changeset 86 a6ad1c4f7e70
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Added tag 00.00.12 for changeset 975c6a1fa0b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"