mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
loading modules for bash system
This commit is contained in:
@@ -2,4 +2,6 @@ AZTH_PATH_ROOT=$(readlink -f "$AZTH_PATH_BIN/../")
|
|||||||
|
|
||||||
AZTH_PATH_CONF="$AZTH_PATH_ROOT/conf"
|
AZTH_PATH_CONF="$AZTH_PATH_ROOT/conf"
|
||||||
|
|
||||||
|
AZTH_PATH_MODULES="$AZTH_PATH_ROOT/modules"
|
||||||
|
|
||||||
AZTH_PATH_CUSTOM=$(readlink -f "$AZTH_PATH_ROOT/../azth_custom")
|
AZTH_PATH_CUSTOM=$(readlink -f "$AZTH_PATH_ROOT/../azth_custom")
|
||||||
|
|||||||
@@ -11,3 +11,14 @@ source "$AZTH_PATH_CONF/config.sh.dist" # "hack" to avoid missing conf variables
|
|||||||
if [ -f "$AZTH_PATH_CONF/config.sh" ]; then
|
if [ -f "$AZTH_PATH_CONF/config.sh" ]; then
|
||||||
source "$AZTH_PATH_CONF/config.sh" # should overwrite previous
|
source "$AZTH_PATH_CONF/config.sh" # should overwrite previous
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Load modules
|
||||||
|
#
|
||||||
|
|
||||||
|
for entry in "$AZTH_PATH_MODULES/"*/include.sh
|
||||||
|
do
|
||||||
|
if [ -e $entry ]; then
|
||||||
|
source $entry
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user