davical/dba/create-database.sh
2006-09-04 23:11:31 +12:00

13 lines
164 B
Bash
Executable File

#!/bin/sh
#
# Build the CalDAV database
#
DBNAME="${1:-caldav}"
createdb -E UTF8 "${DBNAME}"
psql -f caldav.sql "${DBNAME}"
psql -f sample-data.sql "${DBNAME}"