authserver/homestead/scripts/create-postgres.sh
author julien <julien@erret.com>
Thu, 30 Jul 2015 18:35:54 +0200
changeset 65 dd52219147fe
parent 8 5a0cbbe0922a
permissions -rw-r--r--
add a cancel button to close the annotation-creation box

#!/usr/bin/env bash

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