blob: f46ba5b3e2544dd63be45ea9a03127161903d303 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
cat >&2 <<EOF
*
* Create database for Roundcube and load the initialization script:
*
* su -l postgres
* psql -c "CREATE ROLE roundcube PASSWORD 'top-secret' INHERIT LOGIN;"
* psql -c "CREATE DATABASE roundcube OWNER roundcube ENCODING 'UTF-8';"
* psql -U roundcube roundcube < /usr/share/webapps/roundcube/SQL/postgres.initial.sql
*
EOF
|