mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Update config file
This commit is contained in:
parent
c0688fc115
commit
3396894985
1 changed files with 6 additions and 1 deletions
|
@ -150,7 +150,7 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
if [ "${changed[$custom_error_file]}" == "true" ]
|
if [ "${changed[$custom_error_file]}" == "true" ]
|
||||||
then
|
then
|
||||||
echo Update error nginx config
|
CUSTOM_ERROR_FILE=$custom_error_file
|
||||||
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
|
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -158,6 +158,11 @@ ynh_app_config_apply() {
|
||||||
then
|
then
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! $custom_error_file ]
|
||||||
|
then
|
||||||
|
ynh_app_setting_set --app=$app --key=custom_error_file --value="$custom_error_file"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ynh_app_config_run $1
|
ynh_app_config_run $1
|
||||||
|
|
Loading…
Add table
Reference in a new issue