1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Make FPM usage and footprint visible only if PHP is enabled

This commit is contained in:
tituspijean 2022-08-07 17:57:06 +02:00
parent 38e6e12553
commit 233829c50c
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -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"]