From 3f968399da1a59612ccc490a0b47a061508a24f5 Mon Sep 17 00:00:00 2001 From: Camille Lafitte Date: Tue, 29 Aug 2023 13:22:31 +0200 Subject: [PATCH] If any php-fpm are installed, we can't do nothing * Prevent sql error when any php-fpm are installed * use case fresh installation --- debian/postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/postinst b/debian/postinst index 9a3eba6..0f7312e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -80,6 +80,11 @@ function generate_domains_type() { set_default="has_https_option=1," fi + #If any php, nothing to do + if [[ -z "${php_list}" ]]; then + exit 0; + fi + for php_version in $php_list do type_name="php${php_version/[^0-9]/}-fpm"