#!bin/sh
#
# script to build demonstration MDweb -french profile database on Linux
#
echo -n "Enter a name for MDweb database : "
read database
echo -n "Enter the owner of the database (postgres user account with rights of DB creation) : "
read owner
pg_dump -d $database > $database.sql
dropdb $database
createdb -O $owner $database -E LATIN1
psql -d $database < dump-MDweb-demo15-fra.sql
