mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Fix start scripts (#8005)
* fix(Bash): Handle missing env variable Bash installation failed when no explicit `zipPath` was set. As it defaulted to `/`, which led to permission errors. * fix(Docker): Fix docker volume error Docker installation failed, because target directories of volumes should not end with a `/`. https://stackoverflow.com/questions/68273745/how-to-make-a-mount-shared-in-docker/68455665#68455665
This commit is contained in:
@@ -227,7 +227,7 @@ function inst_download_client_data {
|
|||||||
|
|
||||||
# first check if it's defined in env, otherwise use the default
|
# first check if it's defined in env, otherwise use the default
|
||||||
local path="${DATAPATH:-$AC_BINPATH_FULL}"
|
local path="${DATAPATH:-$AC_BINPATH_FULL}"
|
||||||
local zipPath="${DATAPATH_ZIP:-"$DATAPATH/data.zip"}"
|
local zipPath="${DATAPATH_ZIP:-"$path/data.zip"}"
|
||||||
|
|
||||||
dataVersionFile="$path/data-version"
|
dataVersionFile="$path/data-version"
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ services:
|
|||||||
abstract-bind:
|
abstract-bind:
|
||||||
image: local/azerothcore/abstract-bind
|
image: local/azerothcore/abstract-bind
|
||||||
volumes:
|
volumes:
|
||||||
- .:/azerothcore/
|
- .:/azerothcore
|
||||||
# expose some dist folder outside allowing the host to use them
|
# expose some dist folder outside allowing the host to use them
|
||||||
- ${DOCKER_VOL_CONF:-./conf}:/azerothcore/conf
|
- ${DOCKER_VOL_CONF:-./conf}:/azerothcore/conf
|
||||||
- ${DOCKER_VOL_BIN:-ac-bin}:/azerothcore/env/dist/bin
|
- ${DOCKER_VOL_BIN:-ac-bin}:/azerothcore/env/dist/bin
|
||||||
@@ -45,7 +45,7 @@ services:
|
|||||||
abstract-no-bind:
|
abstract-no-bind:
|
||||||
image: local/azerothcore/abstract-no-bind
|
image: local/azerothcore/abstract-no-bind
|
||||||
volumes:
|
volumes:
|
||||||
- ac-proj:/azerothcore/
|
- ac-proj:/azerothcore
|
||||||
profiles: [abstract-service] # do not run this
|
profiles: [abstract-service] # do not run this
|
||||||
|
|
||||||
#=======================
|
#=======================
|
||||||
|
|||||||
Reference in New Issue
Block a user