]>
gitweb.michael.orlitzky.com - mailshears.git/blob - test/bin/install-fixtures.sh
3 # This script installs the test fixtures into the default databases on
4 # localhost assuming everything is configured just right. Don't worry
5 # about this, go play with something else.
7 rm -rf /tmp
/mailshears
-test
8 mkdir -p /tmp
/mailshears
-test/example.com
/alice
9 mkdir -p /tmp
/mailshears
-test/example.com
/booger
10 mkdir -p /tmp
/mailshears
-test/example.com
/jeremy
11 mkdir -p /tmp
/mailshears
-test/example.net
/adam
13 dropdb
--if-exists -U postgres agendav
14 createdb
-U postgres agendav
15 psql
-U postgres
-d agendav
< test
/sql
/agendav.sql
16 psql
-U postgres
-d agendav
< test
/sql
/agendav
-fixtures.sql
18 dropdb
--if-exists -U postgres davical
19 createdb
-U postgres davical
20 psql
-U postgres
-d davical
< test
/sql
/davical.sql
21 psql
-U postgres
-d davical
< test
/sql
/davical
-fixtures.sql
23 dropdb
--if-exists -U postgres postfixadmin
24 createdb
-U postgres postfixadmin
25 psql
-U postgres
-d postfixadmin
< test
/sql
/postfixadmin.sql
26 psql
-U postgres
-d postfixadmin
< test
/sql
/postfixadmin
-fixtures.sql
28 dropdb
--if-exists -U postgres roundcube
29 createdb
-U postgres roundcube
30 psql
-U postgres
-d roundcube
< test
/sql
/roundcube.sql
31 psql
-U postgres
-d roundcube
< test
/sql
/roundcube
-fixtures.sql