-
Notifications
You must be signed in to change notification settings - Fork 6
/
InstallWowfiles.sh
executable file
·47 lines (34 loc) · 1.11 KB
/
InstallWowfiles.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
cores=$(nproc --ignore=1)
cp /mangos/mmap-extractor /wow
cp /mangos/map-extractor /wow
cp /mangos/vmap-extractor /wow
cd /wow
./map-extractor
./vmap-extractor
./mmap-extractor --threads $cores
echo Moving generated files from /wow to /config/wowfiles
echo This may take a while.
mkdir /config/wowfiles
mkdir /config/mangoslogs
mv /wow/mmaps /config/wowfiles
mv /wow/vmaps /config/wowfiles
mv /wow/maps /config/wowfiles
mv /wow/dbc /config/wowfiles
ln -s /config/wowfiles/mmaps /mangos
ln -s /config/wowfiles/vmaps /mangos
ln -s /config/wowfiles/maps /mangos
ln -s /config/wowfiles/dbc /mangos
mkdir /config/wowconfig/
if [ ! -f /config/wowconfig/mangosd.conf ]; then
cp /install/mangosd.conf /config/wowconfig
fi
if [ ! -f /config/wowconfig/realmd.conf ]; then
cp /install/realmd.conf /config/wowconfig
fi
if [ ! -f /config/wowconfig/console.conf ]; then
cp /install/console.conf /config/wowconfig
fi
echo Script Finished
echo If you want, you can recreate this container without the /wow mapping / world of warcraft installation directory
echo The needed files are now present in the /config directory.