Skip to content

Commit

Permalink
[LE] Unable to Update/Remove add-on when... jelastic-jps#296
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarenkoalexey authored May 31, 2024
1 parent 20f369c commit 2001df1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/ssl-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,13 @@ function SSLManager(config) {
};

me.uninstall = function () {
var autoUpdateScript = nodeManager.getScriptPath(AUTO_UPDATE_SCRIPT);
var autoUpdateScript = nodeManager.getScriptPath(AUTO_UPDATE_SCRIPT),
resp;

resp = nodeManager.getEntryPointGroup();
if (resp.result != 0) return resp;

config.nodeGroup = resp.group;

return me.execAll([
[ me.cmd, "crontab -l 2>/dev/null | grep -v '%(scriptPath)' | crontab -", {
Expand All @@ -383,7 +389,8 @@ function SSLManager(config) {
nodeManager.getScriptPath(INSTALL_LE_SCRIPT),
nodeManager.getScriptPath(VALIDATION_SCRIPT),
autoUpdateScript
].join(DOMAINS_SEP)
].join(DOMAINS_SEP),
nodeGroup: config.nodeGroup
}]
]);
};
Expand Down

0 comments on commit 2001df1

Please sign in to comment.