Apply suggestions from code review

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Alexandre Aubin 2020-06-16 21:31:24 +02:00
parent 76b60890c6
commit e07e1a95f4
2 changed files with 3 additions and 3 deletions

View file

@ -329,7 +329,7 @@ EOF
update-alternatives --set php /usr/bin/php$YNH_DEFAULT_PHP_VERSION
# Store phpversion into the config of this app
ynh_app_setting_set $app phpversion $specific_php_version
ynh_app_setting_set --app=$app --key=phpversion --value=$specific_php_version
# Integrate new php-fpm service in yunohost
yunohost service add php${specific_php_version}-fpm --log "/var/log/php${phpversion}-fpm.log"
@ -435,7 +435,7 @@ ynh_install_extra_app_dependencies () {
ynh_install_extra_repo --repo="$repo" $key --priority=995 --name=$name
# Install requested dependencies from this extra repository.
ynh_install_app_dependencies --package="$package"
ynh_install_app_dependencies "$package"
# Remove this extra repository after packages are installed
ynh_remove_extra_repo --name=$app

View file

@ -336,7 +336,7 @@ ynh_install_php () {
fi
ynh_install_app_dependencies "$package"
ynh_app_setting_set $app phpversion $phpversion
ynh_app_setting_set --app=$app --key=phpversion --value=$specific_php_version
}
# Remove the specific version of PHP used by the app.