authserver/homestead/scripts/create-postgres.sh
author durandn
Wed, 09 Sep 2015 17:48:05 +0200
changeset 115 5b3afe8c5592
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Adjustments on Markers: user can't post new marker if too close to another one + clicking the create button will create a "placeholder" marker to show where the marker will be posted
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"