summaryrefslogtreecommitdiff
path: root/bin/acore-docker-build
blob: d7cc6e244e48582bb89db873d624b7118556d3b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

cd /azerothcore

bash acore.sh compiler build

echo "Generating confs..."
cp -n "env/docker/etc/worldserver.conf.dockerdist" "env/dist/etc/worldserver.conf"
cp -n "env/docker/etc/authserver.conf.dockerdist" "env/dist/etc/authserver.conf"

echo "Fixing EOL..."
# using -n (new file mode) should also fix the issue
# when the file is created with the default acore user but you
# set a different user into the docker configurations
for file in "env/dist/etc/"*
do
    dos2unix -n $file $file
done