authserver/homestead/scripts/create-postgres.sh
author rougeronj
Fri, 07 Aug 2015 17:25:23 +0200
changeset 75 b78e2ec3e7a5
parent 8 5a0cbbe0922a
permissions -rw-r--r--
ellipsis for long texts in the annotations and show filters

#!/usr/bin/env bash

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