authserver/homestead/scripts/create-postgres.sh
author ymh <ymh.work@gmail.com>
Thu, 10 Sep 2015 16:14:35 +0200
changeset 111 61e2c48cf694
parent 8 5a0cbbe0922a
permissions -rw-r--r--
correct cas login url for cas protected resources

#!/usr/bin/env bash

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