authserver/homestead/scripts/create-postgres.sh
author rougeronj
Mon, 07 Sep 2015 16:25:09 +0200
changeset 98 e00c89006e9a
parent 8 5a0cbbe0922a
permissions -rw-r--r--
add new option to allow enter a tag through an input box rather than button. Adapt css to the new input box

#!/usr/bin/env bash

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