diff --git a/scripts/restore b/scripts/restore index 2923585..2284fc6 100755 --- a/scripts/restore +++ b/scripts/restore @@ -52,7 +52,7 @@ ynh_script_progression --message="Restoring the NGINX web server configuration.. ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/"$domain".d/api_"$app".conf" -ynh_restore_file --origin_path="/etc/nginx/conf.d/$mqtt_domain.d/mqtt_$app.conf" --not_mandatory +[[ "$mosquitto" = 1 ]] && ynh_restore_file --origin_path="/etc/nginx/conf.d/$mqtt_domain.d/mqtt_$app.conf" --not_mandatory #================================================= # RECREATE THE DEDICATED USER