loading modules for bash system

This commit is contained in:
Yehonal
2016-07-30 10:54:53 +02:00
committed by Yehonal
parent a3a6488f51
commit 4a3afdb448
2 changed files with 13 additions and 0 deletions

View File

@@ -2,4 +2,6 @@ AZTH_PATH_ROOT=$(readlink -f "$AZTH_PATH_BIN/../")
AZTH_PATH_CONF="$AZTH_PATH_ROOT/conf"
AZTH_PATH_MODULES="$AZTH_PATH_ROOT/modules"
AZTH_PATH_CUSTOM=$(readlink -f "$AZTH_PATH_ROOT/../azth_custom")

View File

@@ -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
source "$AZTH_PATH_CONF/config.sh" # should overwrite previous
fi
#
# Load modules
#
for entry in "$AZTH_PATH_MODULES/"*/include.sh
do
if [ -e $entry ]; then
source $entry
fi
done