From 233829c50cda4acd299a93fec249df9232eca159 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 7 Aug 2022 17:57:06 +0200 Subject: [PATCH] Make FPM usage and footprint visible only if PHP is enabled --- config_panel.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config_panel.toml b/config_panel.toml index d2ba140..1d5407d 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -28,6 +28,7 @@ name = "My Webapp configuration" default = "none" [main.php_fpm_config.fpm_footprint] + visible = "phpversion != 'none'" ask = "Memory footprint of the service?" type = "select" choices.low = "Low, <= 20Mb per pool" @@ -37,13 +38,14 @@ name = "My Webapp configuration" default = "low" [main.php_fpm_config.fpm_free_footprint] - visible = "fpm_footprint == 'specific'" + visible = "fpm_footprint == 'specific' && phpversion != 'none'" ask = "Memory footprint of the service?" type = "number" default = "0" help = "Free field to specify exactly the footprint in Mb if you don't want to use one of the three previous values." [main.php_fpm_config.fpm_usage] + visible = "phpversion != 'none'" ask = "Expected usage of the service?" type = "select" choices = ["low", "medium", "high"]