authserver/homestead/scripts/create-postgres.sh
author durandn
Tue, 22 Sep 2015 17:07:01 +0200
changeset 163 f7cc6a0670fd
parent 8 5a0cbbe0922a
permissions -rw-r--r--
CurrentSegmentInfobox: Fixed bug where editing a segment would not update the source correctly and mess up with other widgets

#!/usr/bin/env bash

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