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

Test config script

This commit is contained in:
Aurelien Vaillant 2023-08-17 17:22:57 +02:00
parent d51c90ffb9
commit 42a5b89393

View file

@ -151,7 +151,8 @@ 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
ynh_add_config --template="nginx-code-error.conf" --destination="/etc/nginx/conf.d/$domain.d/$app.d/error-code.conf" # ynh_add_config --template="nginx-code-error.conf" --destination="/etc/nginx/conf.d/$domain.d/$app.d/error-code.conf"
ynh_secure_remove --file="/etc/nginx/conf.d/$domain.d/$app.d/error-code.conf"
else else
ynh_secure_remove --file="/etc/nginx/conf.d/$domain.d/$app.d/error-code.conf" ynh_secure_remove --file="/etc/nginx/conf.d/$domain.d/$app.d/error-code.conf"
fi fi