diff --git a/scripts/_ynh_add_fpm_config b/scripts/_ynh_add_fpm_config index 8ee2479..9d4dacf 100644 --- a/scripts/_ynh_add_fpm_config +++ b/scripts/_ynh_add_fpm_config @@ -108,7 +108,9 @@ ynh_add_fpm_config () { fi # Concatene the extra config. - cat ../conf/extra_php-fpm.conf >> "$finalphpconf" + if [ -e ../conf/extra_php-fpm.conf ]; then + cat ../conf/extra_php-fpm.conf >> "$finalphpconf" + fi fi sudo chown root: "$finalphpconf" ynh_store_file_checksum --file="$finalphpconf" diff --git a/scripts/install b/scripts/install index 120efd8..5401721 100644 --- a/scripts/install +++ b/scripts/install @@ -8,6 +8,7 @@ source _common.sh source /usr/share/yunohost/helpers +source _ynh_add_fpm_config #================================================= # MANAGE FAILURE OF THE SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 829c21c..a10245a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -8,6 +8,7 @@ source _common.sh source /usr/share/yunohost/helpers +source _ynh_add_fpm_config #================================================= # LOAD SETTINGS