Skip to content

Commit

Permalink
Fix pm2 using detection when pm2 script is in MagicMirror root folde
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet committed Oct 2, 2024
1 parent d1be92a commit b077be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ _This release is scheduled to be released on 2025-01-01._

### Fixed

- [updatenotification] Fix pm2 using detection when pm2 script is in MagicMirror root folder

## [2.29.0] - 2024-10-01

Thanks to: @bugsounet, @dkallen78, @jargordon, @khassel, @KristjanESPERANTO, @MarcLandis, @rejas, @ryan-d-williams, @sdetweil, @skpanagiotis.
Expand Down
2 changes: 1 addition & 1 deletion modules/default/updatenotification/update_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Updater {
return;
}
list.forEach((pm) => {
if (pm.pm2_env.version === this.version && pm.pm2_env.status === "online" && pm.pm2_env.pm_cwd.includes(`${this.root_path}/`)) {
if (pm.pm2_env.version === this.version && pm.pm2_env.status === "online" && pm.pm2_env.pm_cwd.includes(`${this.root_path}`)) {
this.PM2 = pm.name;
this.usePM2 = true;
Log.info("updatenotification: [PM2] You are using pm2 with", this.PM2);
Expand Down

0 comments on commit b077be3

Please sign in to comment.