-
Notifications
You must be signed in to change notification settings - Fork 6
/
50-prepmangos
executable file
·51 lines (40 loc) · 1.26 KB
/
50-prepmangos
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
48
49
50
51
#!/usr/bin/with-contenv bash
if [ ! -d /mangos/dbc ]; then
if [ -d /config/wowfiles/dbc ]; then
ln -s /config/wowfiles/dbc /mangos
fi
fi
if [ ! -d /mangos/mmaps ]; then
if [ -d /config/wowfiles/mmaps ]; then
ln -s /config/wowfiles/mmaps /mangos
fi
fi
if [ ! -d /mangos/vmaps ]; then
if [ -d /config/wowfiles/vmaps ]; then
ln -s /config/wowfiles/vmaps /mangos
fi
fi
if [ ! -d /mangos/maps ]; then
if [ -d /config/wowfiles/maps ]; then
ln -s /config/wowfiles/maps /mangos
fi
fi
if [ ! -d /config/mangoslogs ]; then
mkdir /config/mangoslogs/
fi
if [ ! -d /config/realmdlogs ]; then
mkdir /config/realmdlogs/
fi
if [ ! -d /config/wowconfig ]; then
mkdir /config/wowconfig/
fi
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
test -f /proc/net/if_inet6 && echo "IPv6 supported. Not changing nginx config" || sed -i '\|listen \[::\]:80 default_server;|s///' /etc/nginx/sites-enabled/default