authserver/homestead/scripts/create-postgres.sh
author durandn
Wed, 22 Jul 2015 16:33:38 +0200
changeset 56 61f03beb9f39
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Minor code fix on AnnotationsController and LatestAnnotation + Added an option for pausing when showing CreateAnnotation

#!/usr/bin/env bash

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