Most of the time there's no .ini file and it still displays an info about the file not existing when attempting to remove it

This commit is contained in:
Alexandre Aubin 2020-05-18 01:31:37 +02:00
parent f73c34bfc1
commit 94ea826518

View file

@ -297,7 +297,10 @@ ynh_remove_fpm_config () {
fi
ynh_secure_remove --file="$fpm_config_dir/pool.d/$app.conf"
ynh_exec_warn_less ynh_secure_remove --file="$fpm_config_dir/conf.d/20-$app.ini"
if [ -e $fpm_config_dir/conf.d/20-$app.ini ]
then
ynh_secure_remove --file="$fpm_config_dir/conf.d/20-$app.ini"
fi
# If the php version used is not the default version for YunoHost
if [ "$phpversion" != "$YNH_DEFAULT_PHP_VERSION" ]