1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

do not remove old fpm config if phpversion was none

This commit is contained in:
Kayou 2024-07-29 16:31:40 +02:00 committed by GitHub
parent ea932c9763
commit 477d98f4a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,9 +111,12 @@ ynh_app_config_apply() {
_ynh_app_config_apply _ynh_app_config_apply
if [ "${changed[phpversion]}" == "true" ] if [ "${changed[phpversion]}" == "true" ]
then
if [ "${old[phpversion]}" != "none" ]
then then
ynh_app_setting_set --app=$app --key=phpversion --value="${old[phpversion]}" ynh_app_setting_set --app=$app --key=phpversion --value="${old[phpversion]}"
ynh_remove_fpm_config ynh_remove_fpm_config
fi
ynh_remove_app_dependencies ynh_remove_app_dependencies
YNH_PHP_VERSION=$phpversion YNH_PHP_VERSION=$phpversion
# ^ ynh_add_config replaces __PHPVERSION__ by __PHP_YNH_VERSION__... # ^ ynh_add_config replaces __PHPVERSION__ by __PHP_YNH_VERSION__...