fix error determin configuration file.
This commit is contained in:
@ -226,15 +226,17 @@ if [[ -z "$WEBSITE" ]] ; then
|
||||
#
|
||||
source ${snippet_dir}/get-cloud-instance-to-update.sh
|
||||
|
||||
#fatal "No website ios given on commandline - Missing Parameter '-s <website>'"
|
||||
else
|
||||
|
||||
while IFS='' read -r -d '' _conf_file ; do
|
||||
if $(grep -E -q "WEBSITE=\"?${WEBSITE}\"?" ${_conf_file} 2> /dev/null) ; then
|
||||
conf_file="${_conf_file}"
|
||||
break
|
||||
fi
|
||||
done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0)
|
||||
|
||||
# conf_file="${conf_dir}/${WEBSITE}.conf"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user