mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Update config with int comparaison
This commit is contained in:
parent
8d4188382b
commit
18041281e3
1 changed files with 3 additions and 2 deletions
|
@ -154,11 +154,12 @@ ynh_app_config_apply() {
|
||||||
nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d"
|
nginx_extra_conf_dir="/etc/nginx/conf.d/$domain.d/$app.d"
|
||||||
ynh_print_info --message="Update the custom setting $custom_error_file"
|
ynh_print_info --message="Update the custom setting $custom_error_file"
|
||||||
|
|
||||||
if [ $custom_error_file ]
|
if [ $custom_error_file -eq 1 ]
|
||||||
then
|
then
|
||||||
ynh_print_info --message="Add the config file"
|
ynh_print_info --message="Add the config file"
|
||||||
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"
|
||||||
else
|
elif [ $custom_error_file -eq 0 ]
|
||||||
|
then
|
||||||
ynh_print_info --message="Remove the config file"
|
ynh_print_info --message="Remove the config file"
|
||||||
ynh_secure_remove --file="$nginx_extra_conf_dir/error-code.conf"
|
ynh_secure_remove --file="$nginx_extra_conf_dir/error-code.conf"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue