Add logs dir to realmd.conf

This commit is contained in:
Janne Veteläinen 2023-02-15 23:36:09 +02:00
parent 3e72a787d2
commit 5ae5a9fe7a
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = vmangos-git
pkgdesc = World of Warcraft Vanilla server emulator
pkgver = r5195.0872c82ed
pkgrel = 1
pkgrel = 2
url = https://github.com/vmangos/
install = vmangos-git.install
arch = x86_64

View file

@ -2,7 +2,7 @@
pkgname=vmangos-git
pkgver=r5195.0872c82ed
pkgrel=1
pkgrel=2
pkgdesc="World of Warcraft Vanilla server emulator"
arch=('x86_64')
url="https://github.com/vmangos/"
@ -80,9 +80,10 @@ package() {
mv ${pkgdir}/etc/vmangos/realmd.conf.dist ${pkgdir}/etc/vmangos/realmd.conf
mv ${pkgdir}/etc/vmangos/mangosd.conf.dist ${pkgdir}/etc/vmangos/mangosd.conf
# Edit default directories in mangosd.conf
# Edit default directories in conf files
sed -i 's/^DataDir.*/DataDir = "\/var\/lib\/vmangos"/' ${pkgdir}/etc/vmangos/mangosd.conf
sed -i 's/^LogsDir.*/LogsDir = "\/var\/log\/vmangos"/' ${pkgdir}/etc/vmangos/mangosd.conf
sed -i 's/^LogsDir.*/LogsDir = "\/var\/log\/vmangos"/' ${pkgdir}/etc/vmangos/realmd.conf
# Install vmangos sysuser and systemd service
install -Dm644 ${srcdir}/user.conf ${pkgdir}/usr/lib/sysusers.d/vmangos.conf