added group and domain support for conf file and repository
This commit is contained in:
@@ -53,8 +53,9 @@ export -f load_autoconf
|
||||
# ------------------------------------------------------------------------------
|
||||
# Load configuration with the following priorities:
|
||||
# 1) Those given on command line, if any
|
||||
# 2) <workingdir>/conf/<hostname>.conf (Hostname based and specific)
|
||||
# 3) <workingdir>/conf/init.conf.sh (Generic default)
|
||||
# 2) <workingdir>/conf/<realm>/<hostname>.conf (Hostname based and specific)
|
||||
# 2) <workingdir>/conf/<hostname>.conf (Hostname based and specific)
|
||||
# 3) <workingdir>/conf/init.conf.sh (Generic default, for testing)
|
||||
load_configuration()
|
||||
{
|
||||
if [[ -n $CONFFILES ]]; then
|
||||
@@ -71,7 +72,10 @@ load_configuration()
|
||||
unset f
|
||||
else
|
||||
prnt I "Loading configuration..."
|
||||
if [[ -e $MYPATH/conf/$HOSTNAME.conf.sh ]]; then
|
||||
if [[ -e $MYPATH/conf/$REALM/$HOSTNAME.conf.sh ]]; then
|
||||
prnt I "A specific configuration will be used."
|
||||
. $MYPATH/conf/$HOSTNAME.conf.sh
|
||||
elif [[ -e $MYPATH/conf/$HOSTNAME.conf.sh ]]; then
|
||||
prnt I "A specific configuration will be used."
|
||||
. $MYPATH/conf/$HOSTNAME.conf.sh
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user