mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Apply suggestions from code review
Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
parent
76b60890c6
commit
e07e1a95f4
2 changed files with 3 additions and 3 deletions
|
@ -329,7 +329,7 @@ EOF
|
||||||
update-alternatives --set php /usr/bin/php$YNH_DEFAULT_PHP_VERSION
|
update-alternatives --set php /usr/bin/php$YNH_DEFAULT_PHP_VERSION
|
||||||
|
|
||||||
# Store phpversion into the config of this app
|
# 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
|
# Integrate new php-fpm service in yunohost
|
||||||
yunohost service add php${specific_php_version}-fpm --log "/var/log/php${phpversion}-fpm.log"
|
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
|
ynh_install_extra_repo --repo="$repo" $key --priority=995 --name=$name
|
||||||
|
|
||||||
# Install requested dependencies from this extra repository.
|
# 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
|
# Remove this extra repository after packages are installed
|
||||||
ynh_remove_extra_repo --name=$app
|
ynh_remove_extra_repo --name=$app
|
||||||
|
|
|
@ -336,7 +336,7 @@ ynh_install_php () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_install_app_dependencies "$package"
|
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.
|
# Remove the specific version of PHP used by the app.
|
||||||
|
|
Loading…
Add table
Reference in a new issue