Skip to content

Commit

Permalink
If any php-fpm are installed, we can't do nothing
Browse files Browse the repository at this point in the history
* Prevent sql error when any php-fpm are installed
* use case fresh installation
  • Loading branch information
camlafit committed Aug 29, 2023
1 parent e231be9 commit 3f96839
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3f96839

Please sign in to comment.