authserver/homestead/scripts/create-postgres.sh
author ymh <ymh.work@gmail.com>
Wed, 22 Jul 2015 17:50:59 +0200
changeset 60 80abd18d84d1
parent 8 5a0cbbe0922a
permissions -rw-r--r--
add migration to django-url-shortener

#!/usr/bin/env bash

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