update _getdeployconf to allow double quotes in config file

when loading values from the config file that had a double quote (") an
error was produced on the eval statement resulting in failure to load
the variable.  Fixed with a sed to escape double quotes in the value
prior to performing the eval
This commit is contained in:
dharp 2023-02-17 22:03:55 -06:00
parent a818b2adc0
commit a46670618b

View File

@ -2398,6 +2398,7 @@ _getdeployconf() {
return 0 # do nothing
fi
_saved="$(_readdomainconf "SAVED_$_rac_key")"
_saved=$(echo "$_saved" | sed 's/"/\\"/g')
eval $_rac_key="\"$_saved\""
export $_rac_key
}