mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
fix indent
This commit is contained in:
parent
cb465e8573
commit
55c0bbb594
1 changed files with 10 additions and 11 deletions
|
@ -159,24 +159,23 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
if [ "${changed[custom_error_file]}" == "true" ]
|
if [ "${changed[custom_error_file]}" == "true" ]
|
||||||
then
|
then
|
||||||
CUSTOM_ERROR_FILE=$custom_error_file
|
CUSTOM_ERROR_FILE=$custom_error_file
|
||||||
nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d"
|
nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d"
|
||||||
|
|
||||||
if [ $custom_error_file -eq 1 ]
|
if [ $custom_error_file -eq 1 ]
|
||||||
then
|
then
|
||||||
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"
|
||||||
elif [ $custom_error_file -eq 0 ]
|
elif [ $custom_error_file -eq 0 ]
|
||||||
then
|
then
|
||||||
ynh_secure_remove --file="$nginx_extra_conf_dir/error-code.conf"
|
ynh_secure_remove --file="$nginx_extra_conf_dir/error-code.conf"
|
||||||
fi
|
fi
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$phpversion" != "none" ]
|
if [ "$phpversion" != "none" ]
|
||||||
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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ynh_app_config_run $1
|
ynh_app_config_run $1
|
||||||
|
|
Loading…
Add table
Reference in a new issue