Change a set value
This commit is contained in:
parent
9384644c80
commit
613e58e149
2 changed files with 3 additions and 2 deletions
|
@ -148,9 +148,10 @@ ynh_app_config_apply() {
|
||||||
ynh_system_user_del_group --username=$app --groups="sftp.app"
|
ynh_system_user_del_group --username=$app --groups="sftp.app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${changed[errorfile]}" == "true" ]
|
if [ "${changed[$custom_error_file]}" == "true" ]
|
||||||
then
|
then
|
||||||
echo Update error nginx config
|
echo Update error nginx config
|
||||||
|
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$phpversion" != "none" ]
|
if [ "$phpversion" != "none" ]
|
||||||
|
|
|
@ -57,7 +57,7 @@ if [ -z "$phpversion" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If custom_error_files doesn't exist, create it. We assume it is the default system one.
|
# If custom_error_files doesn't exist, create it. We assume it is the default system one.
|
||||||
if [ -z "$custom_error_file" ]; then
|
if [ -n "$(ynh_app_setting_get --app=$app --key=custom_error_file)" ]; then
|
||||||
custom_error_file=$(ynh_app_setting_get --app=$app --key=custom_error_file)
|
custom_error_file=$(ynh_app_setting_get --app=$app --key=custom_error_file)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue