]> gitweb.michael.orlitzky.com - mailshears.git/blob - bin/install-fixtures.sh
Remove a TODO I don't intend to DO.
[mailshears.git] / bin / install-fixtures.sh
1 #!/bin/sh
2
3 rm -rf /tmp/mailshears-test
4 mkdir -p /tmp/mailshears-test/example.com/alice
5 mkdir -p /tmp/mailshears-test/example.com/booger
6 mkdir -p /tmp/mailshears-test/example.com/jeremy
7 mkdir -p /tmp/mailshears-test/example.net/adam
8
9 dropdb --if-exists -U postgres agendav
10 createdb -U postgres agendav
11 psql -U postgres -d agendav < test/sql/agendav.sql
12 psql -U postgres -d agendav < test/sql/agendav-fixtures.sql
13
14 dropdb --if-exists -U postgres davical
15 createdb -U postgres davical
16 psql -U postgres -d davical < test/sql/davical.sql
17 psql -U postgres -d davical < test/sql/davical-fixtures.sql
18
19 dropdb --if-exists -U postgres postfixadmin
20 createdb -U postgres postfixadmin
21 psql -U postgres -d postfixadmin < test/sql/postfixadmin.sql
22 psql -U postgres -d postfixadmin < test/sql/postfixadmin-fixtures.sql
23
24 dropdb --if-exists -U postgres roundcube
25 createdb -U postgres roundcube
26 psql -U postgres -d roundcube < test/sql/roundcube.sql
27 psql -U postgres -d roundcube < test/sql/roundcube-fixtures.sql