Files
azerothcore-wotlk-pbot/bin/acore-docker-build
Patrick Lewis e02d5f4ae4 fix(BASH): cp docker configs (#5536)
* fix(BASH): cp docker configs

* fix(DOCKER): typo
2021-04-29 01:31:17 -07:00

21 lines
514 B
Bash
Executable File

#!/usr/bin/env bash
cd /azerothcore
bash acore.sh compiler build
echo "Generating confs..."
cp -n "env/dist/etc/worldserver.conf.dockerdist" "env/dist/etc/worldserver.conf"
cp -n "env/dist/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