summarylogtreecommitdiffstats
path: root/vmangos-git.install
blob: 7492c4a8100f7ae230dce0543e6dd2b385b95bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## arg 1:  the new package version
post_install() {
    cat << EOF


** Mangosd expects game data files to be located in /var/lib/vmangos.
** These can be extracted from the client, or obtained from elsewhere and
** placed in the directory.
** Note that the extraction process will take up to a couple hours.

Procedure for extracting:
1. Cd to your MMORPG installation directory
2. $ sudo -u vmangos /usr/share/vmangos/vmangos-extract-data.sh
    - Run as 'vmangos' user to have permissions over the target directory.

** Sql scripts to set up the databases can be found in /usr/share/vmangos/sql.
** Use MariaDB to set up databases.

** More info:
** https://github.com/vmangos/wiki/wiki/Getting-it-working

** To start the server, use
**     # systemctl start vmangos-realmd vmangos-mangosd
** Stdin of the console can be written to at /run/vmangos-mangosd.stdin


EOF
}

post_upgrade() {
    cat << EOF
** Databases need to be updated.
** Sql scripts can be found at /usr/share/vmangos/sql/migrations.
EOF
}