X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=bin%2Finstall-fixtures.sh;fp=bin%2Finstall-fixtures.sh;h=815ba61e8f0c641dc5bc2e1193c0aaf44a1d97b7;hp=0000000000000000000000000000000000000000;hb=a0987dbd47433538e1132a53af0df7502fa0289b;hpb=87b161fa9e10eb189b09562c423e07372d2a2a7b diff --git a/bin/install-fixtures.sh b/bin/install-fixtures.sh new file mode 100755 index 0000000..815ba61 --- /dev/null +++ b/bin/install-fixtures.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +dropdb --if-exists -U postgres agendav +createdb -U postgres agendav +psql -U postgres -d agendav < test/sql/agendav.sql +psql -U postgres -d agendav < test/sql/agendav-fixtures.sql + +dropdb --if-exists -U postgres davical +createdb -U postgres davical +psql -U postgres -d davical < test/sql/davical.sql +psql -U postgres -d davical < test/sql/davical-fixtures.sql + +dropdb --if-exists -U postgres postfixadmin +createdb -U postgres postfixadmin +psql -U postgres -d postfixadmin < test/sql/postfixadmin.sql +psql -U postgres -d postfixadmin < test/sql/postfixadmin-fixtures.sql + +dropdb --if-exists -U postgres roundcube +createdb -U postgres roundcube +psql -U postgres -d roundcube < test/sql/roundcube.sql +psql -U postgres -d roundcube < test/sql/roundcube-fixtures.sql