mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
- fix docker permissions with mounted volumes on new docker versions (https://github.com/docker/desktop-linux/issues/31) - fix ac-tools image - cleanup unused env - add `cap_add: SYS_NICE` to allow setting process high priority - fix ccache in docker - allow to switch between root user (default) to acore user in any container - fix cache of the downloaded client data - split docker github actions in 2 parts - versioning mysql images - performance improvements
27 lines
746 B
Bash
27 lines
746 B
Bash
function registerHooks() { acore_event_registerHooks "$@"; }
|
|
function runHooks() { acore_event_runHooks "$@"; }
|
|
|
|
source "$AC_PATH_CONF/dist/config.sh" # include dist to avoid missing conf variables
|
|
|
|
# first check if it's defined in env, otherwise use the default
|
|
USER_CONF_PATH=${USER_CONF_PATH:-"$AC_PATH_CONF/config.sh"}
|
|
|
|
if [ -f "$USER_CONF_PATH" ]; then
|
|
source "$USER_CONF_PATH" # should overwrite previous
|
|
else
|
|
echo "NOTICE: file <$USER_CONF_PATH> not found, we use default configuration only."
|
|
fi
|
|
|
|
#
|
|
# Load modules
|
|
#
|
|
|
|
for entry in "$AC_PATH_MODULES/"*/include.sh
|
|
do
|
|
if [ -e "$entry" ]; then
|
|
source "$entry"
|
|
fi
|
|
done
|
|
|
|
ACORE_VERSION=$("$AC_PATH_DEPS/jsonpath/JSONPath.sh" -f "$AC_PATH_ROOT/acore.json" -b '$.version')
|