authserver/homestead/scripts/create-postgres.sh
author durandn
Fri, 28 Aug 2015 12:24:30 +0200
changeset 79 fd48103c0deb
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Modified CurrentSegmentInfobox to allow for editable segments (title, description and tags)

#!/usr/bin/env bash

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