Skip to content

Commit

Permalink
Do not delete licenceFlag for vendors (#2896)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox authored Sep 6, 2024
1 parent bcfdc2f commit 52bf8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/lib/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2906,11 +2906,11 @@ function unsetup(params: Record<string, any>, callback: ExitCodeCb): void {
}
objects.getObject('system.config', (_err, obj) => {
if (obj?.common.licenseConfirmed || obj?.common.language || obj?.native?.secret) {
obj.common.licenseConfirmed = false;
obj.common.language = 'en';
// allow with parameter --keepsecret to not delete the secret
// This is very specific use case for vendors and must not be described in documentation
if (!params.keepsecret) {
obj.common.licenseConfirmed = false;
obj.native && delete obj.native.secret;
}

Expand Down

0 comments on commit 52bf8f5

Please sign in to comment.