From f0a01a7aaa1cd522ffa2afcd71ca49359b5f2c94 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 15 Oct 2023 21:31:41 +0200 Subject: [PATCH] Patch mail system in install. --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 96e4c3b..07a0176 100755 --- a/scripts/install +++ b/scripts/install @@ -60,6 +60,9 @@ ynh_script_progression --message="Installing $app..." --weight=2 pushd $install_dir ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install n8n@${n8n_version} + ynh_string_replace --match_string="secure: config_1.default.getEnv('userManagement.emails.smtp.secure')," \ + --replace_string="secure: config_1.default.getEnv('userManagement.emails.smtp.secure'), tls: {servername:'${main_domain}'}," \ + --target_file="node_modules/n8n/dist/UserManagement/email/NodeMailer.js" popd chmod -R o-rwx "$install_dir"