1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Clear debug message, and add a restart about Nginx service

This commit is contained in:
Aurelien Vaillant 2023-08-18 09:40:42 +02:00
parent 04338ac091
commit c409b9d0e1

View file

@ -152,15 +152,12 @@ ynh_app_config_apply() {
then
CUSTOM_ERROR_FILE=$custom_error_file
nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d"
ynh_print_info --message="Update the custom setting $custom_error_file"
if [ $custom_error_file -eq 1 ]
then
ynh_print_info --message="Add the config file"
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
elif [ $custom_error_file -eq 0 ]
then
ynh_print_info --message="Remove the config file"
ynh_secure_remove --file="$nginx_extra_conf_dir/error-code.conf"
fi
ynh_systemd_action --service_name=nginx --action=restart