authserver/homestead/scripts/create-postgres.sh
author ymh <ymh.work@gmail.com>
Wed, 16 Sep 2015 21:41:11 +0200
changeset 142 8d5035e5adaf
parent 8 5a0cbbe0922a
permissions -rw-r--r--
change the way the user is created after a cas login

#!/usr/bin/env bash

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