Added "deb-live/config/cnas-custom-settings.d" directory
This commit is contained in:
parent
b9d56c4682
commit
d3543f3988
1 changed files with 10 additions and 1 deletions
|
@ -24,8 +24,17 @@ CNAS_CONFIG_DIR="config"
|
||||||
|
|
||||||
. ${CNAS_CONFIG_DIR}/cnas-default-settings
|
. ${CNAS_CONFIG_DIR}/cnas-default-settings
|
||||||
|
|
||||||
|
#Include files in "cnas-custom-settings.d" directory
|
||||||
|
if [ -d ${CNAS_CONFIG_DIR}/cnas-custom-settings.d ]
|
||||||
|
then
|
||||||
|
for include_file in `find ${CNAS_CONFIG_DIR}/cnas-custom-settings.d -type f -print`
|
||||||
|
do
|
||||||
|
. "$include_file"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
#Include cnas-custom-settings IFF this file exists
|
#Include "cnas-custom-settings" IFF this file exists. Variables here can
|
||||||
|
#override those in "cnas-custom-settings.d" directory.
|
||||||
[ -f ${CNAS_CONFIG_DIR}/cnas-custom-settings ] && . ${CNAS_CONFIG_DIR}/cnas-custom-settings
|
[ -f ${CNAS_CONFIG_DIR}/cnas-custom-settings ] && . ${CNAS_CONFIG_DIR}/cnas-custom-settings
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue