2
# Adopted from Phil Endecott <spam-from-debian-bugs@chezphil.org>
3
# who suggested this script in http://bugs.debian.org/272113
5
echo "Please note: This is just an example how to setup OTRS with PostgreSQL."
6
echo "Do not execute it blindly."
11
# Create necessary user and Database
12
createuser -A -D -P otrs
13
createdb -O otrs -E latin1 otrs
14
# Now become root again
17
# allow otrs user to log in
18
# It is the best way to under Debian for authentication to PostgreSQL if the
19
# system user is equal to the PostgreSQL user
22
# Initialize the necessary databases
23
psql -d otrs -f /usr/share/otrs/scripts/database/otrs-schema.postgresql.sql
24
psql -d otrs -f /usr/share/otrs/scripts/database/initial_insert.sql
28
You should edit the database user and password in /etc/otrs/Kernel/Config.pm