authserver/homestead/scripts/create-postgres.sh
author rougeronj
Wed, 05 Aug 2015 18:00:35 +0200
changeset 73 fb433b63a22b
parent 8 5a0cbbe0922a
permissions -rw-r--r--
use outline instead of border to fix little bug of the lecture head

#!/usr/bin/env bash

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