From 76150d0ce6d55a8a2da05ff31e44754f41b19f0a Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 12 Nov 2024 01:13:40 +0800 Subject: [PATCH] Fixed Code --- scripts/beforeInstall.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/beforeInstall.js b/scripts/beforeInstall.js index bf4bd90..beda0b5 100644 --- a/scripts/beforeInstall.js +++ b/scripts/beforeInstall.js @@ -6,17 +6,16 @@ var wafAddon = getParam('settings.wafAddon', true); var resp = { result: 0, - ssl: !!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0]?.value, + ssl: !!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0].value, nodes: [{ nodeType: "storage", - flexibleCloudlets: getParam('settings.st_flexibleCloudlets', 8), - fixedCloudlets: getParam('settings.st_fixedCloudlets', 1), - diskLimit: getParam('settings.st_diskLimit', 100), + flexibleCloudlets: ${settings.st_flexibleCloudlets:8}, + fixedCloudlets: ${settings.st_fixedCloudlets:1}, + diskLimit: ${settings.st_diskLimit:100}, nodeGroup: "storage", displayName: "Storage" }] -}; - +} resp.nodes.push({ nodeType: "llsmp", engine: phpVersion,