authserver/homestead/scripts/create-postgres.sh
author Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr>
Mon, 20 Jul 2015 17:37:14 +0200
changeset 50 b3880434c4ad
parent 8 5a0cbbe0922a
permissions -rw-r--r--
charte graphique itop

#!/usr/bin/env bash

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