authserver/homestead/scripts/create-postgres.sh
author durandn
Fri, 25 Sep 2015 17:07:18 +0200
changeset 167 fe67a33f5045
parent 8 5a0cbbe0922a
permissions -rw-r--r--
Small fix with usernames

#!/usr/bin/env bash

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