bind_remove_domain_on_master.sh: Load default configuration if configuration file not found.
This commit is contained in:
parent
8871b614e7
commit
aef805100f
@ -376,9 +376,10 @@ if $LOGGING ; then
|
|||||||
|
|
||||||
else # if $LOGGING
|
else # if $LOGGING
|
||||||
|
|
||||||
if [[ ! -f "$conf_file" ]]; then
|
#if [[ ! -f "$conf_file" ]]; then
|
||||||
fatal "Configuration file '$conf_file' not found!"
|
# fatal "Configuration file '$conf_file' not found!"
|
||||||
else
|
#else
|
||||||
|
if [[ -f "$conf_file" ]]; then
|
||||||
echononl " Loading default Configuration values from $(basename ${conf_file}).."
|
echononl " Loading default Configuration values from $(basename ${conf_file}).."
|
||||||
source "${conf_file}" > $log_file 2>&1
|
source "${conf_file}" > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
@ -389,6 +390,8 @@ else # if $LOGGING
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ -z "$CONF_FILE_DIR" ]] && CONF_FILE_DIR="$DEFAULT_CONF_FILE_DIR"
|
||||||
|
|
||||||
if [[ -z "$CONF_FILE_DIR" ]]; then
|
if [[ -z "$CONF_FILE_DIR" ]]; then
|
||||||
fatal "Directory contaning bind configurations not set (see CONF_FILE_DIR)!"
|
fatal "Directory contaning bind configurations not set (see CONF_FILE_DIR)!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user