ARM templates. Callhome is different if ARM template is installed in gov region

This commit is contained in:
danielmkn
2021-02-10 18:10:43 -08:00
parent e744c6821b
commit 1e14d18b04

View File

@@ -264,9 +264,16 @@ cat /tmp/temp.key | sed 's/KEY----- /&\n/' | sed 's/ -----END/\n-----END/' | awk
rm /tmp/temp.key rm /tmp/temp.key
fi fi
cat <<EOF >/var/opt/jfrog/artifactory/etc/info/installer-info.json
if [[ "${LOCATION}" =~ $regex_location_gov ]] || [[ "${LOCATION}" =~ $regex_location_dod ]]; then
CALLHOME_SUFFIX=gov
else
CALLHOME_SUFFIX=template
fi
cat <<EOF >installer-info.json
{ {
"productId": "ARM_artifactory-pro-template/1.0.0", "productId": "ARM_artifactory-pro-${CALLHOME_SUFFIX}/1.0.0",
"features": [ "features": [
{ {
"featureId": "Partner/ACC-007221" "featureId": "Partner/ACC-007221"