Change conditional expression

This commit is contained in:
Aurelien Vaillant 2023-08-21 15:02:29 +02:00
parent 9dbb8b1821
commit 2c0b155c94

View file

@ -40,7 +40,7 @@ fi
# BACKUP CUSTOM CONF
#=================================================
if [ $custom_error_file == "true"]
if [ $custom_error_file ]
then
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.d/nginx-code-error.conf"
fi