authserver/homestead/scripts/create-postgres.sh
author durandn
Thu, 10 Sep 2015 14:10:06 +0200
changeset 119 5f78fdba6ecc
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Remie: marker delete button is now red to make its function more understandable

#!/usr/bin/env bash

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