From cb3e3673ecc0a55ec93c1eef6f96a8fa5d1a3f6a Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Mon, 11 Sep 2023 18:08:56 +0200 Subject: [PATCH] Fix php version for fpm --- manifest.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 39f7c09..e2d75d3 100644 --- a/manifest.toml +++ b/manifest.toml @@ -47,4 +47,14 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "php8.0-fpm" \ No newline at end of file + packages_from_raw_bash = """ + if [[ "$php_version" == "7.4" ]]; then + echo "php7.4-fpm" + elif [[ "$php_version" == "8.0" ]]; then + echo "php8.0-fpm" + elif [[ "$php_version" == "8.1" ]]; then + echo "php8.1-fpm" + elif [[ "$php_version" == "8.2" ]]; then + echo "php8.2-fpm" + fi + """