From 1a8274cb1a332c9fae07b1b76b7670b3a636c15e Mon Sep 17 00:00:00 2001 From: "alexey.lazarenko" Date: Mon, 11 Sep 2023 11:12:01 +0300 Subject: [PATCH] JE-67173 [Let's Encrypt] the LE Cron Task is not deleted from the CP layer when the addon is installed with the enabled "webroot" parameter --- scripts/ssl-manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ssl-manager.js b/scripts/ssl-manager.js index 46c034ce..de483e55 100644 --- a/scripts/ssl-manager.js +++ b/scripts/ssl-manager.js @@ -354,11 +354,13 @@ function SSLManager(config) { me.uninstall = function () { var autoUpdateScript = nodeManager.getScriptPath(AUTO_UPDATE_SCRIPT); + var resp = nodeManager.getNode(); + if (resp.result != 0) return resp; return me.execAll([ [ me.cmd, "crontab -l 2>/dev/null | grep -v '%(scriptPath)' | crontab -", { scriptPath : autoUpdateScript, - nodeGroup: config.nodeGroup + nodeGroup: resp && resp.node ? resp.node.nodeGroup : config.nodeGroup }], [ me.initAddOnExtIp, config.withExtIp ],