authserver/homestead/scripts/create-postgres.sh
author ymh <ymh.work@gmail.com>
Thu, 16 Jul 2015 16:17:43 +0200
changeset 21 d8f103659dfd
parent 8 5a0cbbe0922a
permissions -rw-r--r--
tastypie 0.12.2 is NOT ready foor django 1.8

#!/usr/bin/env bash

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