1
0
Fork 0
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:
Aurelien Vaillant 2023-08-16 19:29:01 +02:00
parent c0688fc115
commit 3396894985

View file

@ -150,7 +150,7 @@ ynh_app_config_apply() {
if [ "${changed[$custom_error_file]}" == "true" ]
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"
fi
@ -158,6 +158,11 @@ ynh_app_config_apply() {
then
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
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