Fix order in which config files are read: First global, the user.

This commit is contained in:
Christoph Niethammer 2016-05-03 06:52:24 +00:00
parent 8ca07c229e
commit e4e02bbd21

12
sit
View file

@ -63,15 +63,17 @@ while [ "$1" != "" ] ; do
shift
done
# Reading in user configuration file if it exists
if [[ -e $SIT_USER_CONFIG_FILE ]] ; then
source $SIT_USER_CONFIG_FILE
fi
source "$SIT_PATH/functions.sh"
# Reading in global configuration file
if [[ -e $SIT_CONFIG_FILE ]] ; then
source $SIT_CONFIG_FILE
fi
source "$SIT_PATH/functions.sh"
# Reading in user configuration file if it exists
if [[ -e $SIT_USER_CONFIG_FILE ]] ; then
source $SIT_USER_CONFIG_FILE
fi
# identify platform manually if no environment variable was set
PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}