chores.sh 330 Bytes
Newer Older
Hanne Moa's avatar
Hanne Moa committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash

set -e
set -o pipefail

DBSERVER=postgresql.uninett.no
DBNAME=postfixgui
CLONE_DBNAME=postfixgui_dev
OWNER=postfixgui

echo "PGPASSFILE: [$PGPASSFILE]"
chmod 0600 $PGPASSFILE

Hanne Moa's avatar
Hanne Moa committed
14 15
dropdb --no-password --if-exists -h $DBSERVER -U $OWNER $CLONE_DBNAME
createdb --no-password -h $DBSERVER -U $OWNER -T $DBNAME $CLONE_DBNAME