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:
parent
ea932c9763
commit
477d98f4a6
1 changed files with 5 additions and 2 deletions
|
@ -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__...
|
||||||
|
|
Loading…
Add table
Reference in a new issue