Skip to content

Commit

Permalink
set forceRecreate to false on migration (#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Sep 19, 2024
1 parent f94bcad commit 80b3a8f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/stakers/src/stakerComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class StakerComponent {
userSettings: UserSettings;
}): Promise<void> {
logs.info(`Persisting ${dnpName}`);
await this.setStakerPkgConfig({ dnpName, isInstalled: true, userSettings });
await this.setStakerPkgConfig({ dnpName, isInstalled: true, userSettings, forceRecreate: false });
}

protected async setNew({
Expand Down Expand Up @@ -133,11 +133,13 @@ export class StakerComponent {
private async setStakerPkgConfig({
dnpName,
isInstalled,
userSettings
userSettings,
forceRecreate = true
}: {
dnpName: string;
isInstalled: boolean;
userSettings: UserSettings;
forceRecreate?: boolean;
}): Promise<void> {
// ensure pkg installed
if (!isInstalled)
Expand All @@ -159,7 +161,7 @@ export class StakerComponent {
await dockerComposeUpPackage({
composeArgs: { dnpName },
upAll: true,
dockerComposeUpOptions: { forceRecreate: true }
dockerComposeUpOptions: { forceRecreate }
});
}

Expand Down

0 comments on commit 80b3a8f

Please sign in to comment.