authserver/homestead/scripts/create-postgres.sh
author ymh <ymh.work@gmail.com>
Wed, 16 Sep 2015 18:48:55 +0200
changeset 136 5dd16d301bc5
parent 8 5a0cbbe0922a
permissions -rw-r--r--
correct syntax error, again

#!/usr/bin/env bash

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