Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Jan 4, 2024
1 parent f7543e2 commit 5f4286c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -10593,14 +10593,14 @@ async function masterSlaveApps() {
}
if (fdmOk) {
if ((!ip || serverStatus === 'DOWN')) {
if (!runningAppsNames.includes(appId)) {
if (!runningAppsNames.includes(identifier)) {
appDockerRestart(appId);
}
} else {
// eslint-disable-next-line no-await-in-loop
let myIP = await fluxNetworkHelper.getMyFluxIPandPort();
myIP = myIP.split(':')[0];
if (myIP !== ip && runningAppsNames.includes(appId)) {
if (myIP !== ip && runningAppsNames.includes(identifier)) {
appDockerStop(appId);
}
}
Expand Down Expand Up @@ -10656,7 +10656,7 @@ async function masterSlaveApps() {
}
if (fdmOk) {
if ((!ip || serverStatus === 'DOWN')) {
if (!runningAppsNames.includes(appId)) {
if (!runningAppsNames.includes(identifier)) {
appDockerRestart(installedApp.name);
log.info(`masterSlaveApps: runningAppsNames:${JSON.stringify(runningAppsNames)}`);
log.info(`masterSlaveApps: starting docker app:${installedApp.name}`);
Expand All @@ -10665,7 +10665,7 @@ async function masterSlaveApps() {
// eslint-disable-next-line no-await-in-loop
let myIP = await fluxNetworkHelper.getMyFluxIPandPort();
myIP = myIP.split(':')[0];
if (myIP !== ip && runningAppsNames.includes(appId)) {
if (myIP !== ip && runningAppsNames.includes(identifier)) {
appDockerStop(installedApp.name);
log.info(`masterSlaveApps: runningAppsNames:${JSON.stringify(runningAppsNames)}`);
log.info(`masterSlaveApps: stopping docker app:${installedApp.name}`);
Expand Down

0 comments on commit 5f4286c

Please sign in to comment.