fix(Docker): windows improvements and permissions fix (#5444)
This commit is contained in:
parent
5954d9c739
commit
e4fafc61dd
15 changed files with 342 additions and 153 deletions
|
|
@ -1,15 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
bash acore.sh compiler build && bash acore.sh db-assembler import-all
|
||||
cd /azerothcore
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
ENV_PATH=$(readlink -f "$CUR_PATH/../env")
|
||||
bash acore.sh compiler build
|
||||
|
||||
echo "Generating confs..."
|
||||
cp -n "$ENV_PATH/docker/etc/worldserver.conf.dockerdist" "$ENV_PATH/dist/etc/worldserver.conf"
|
||||
cp -n "$ENV_PATH/docker/etc/authserver.conf.dockerdist" "$ENV_PATH/dist/etc/authserver.conf"
|
||||
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..."
|
||||
dos2unix "$ENV_PATH/dist/etc/"*
|
||||
# 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
|
||||
|
||||
|
||||
|
|
|
|||
7
bin/acore-docker-update
Normal file
7
bin/acore-docker-update
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source "$CUR_PATH/acore-docker-build"
|
||||
|
||||
bash acore.sh db-assembler import-all
|
||||
Loading…
Add table
Add a link
Reference in a new issue