authserver/homestead/scripts/create-postgres.sh
author durandn
Wed, 27 May 2015 15:34:06 +0200
changeset 8 5a0cbbe0922a
permissions -rw-r--r--
CAS Authentication (normal and proxy) + local Homestead vm

#!/usr/bin/env bash

DB=$1;
su postgres -c "dropdb $DB --if-exists"
su postgres -c "createdb -O homestead '$DB' || true"