Skip to content

Commit ed42133

Browse files
committed
copy application proproperties if exist
Signed-off-by: Jeffrey Tang <[email protected]>
1 parent 2df8689 commit ed42133

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commands/node.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,10 @@ export class NodeCommand extends BaseCommand {
749749
for (const signedKeyFile of signedKeyFiles) {
750750
await this.k8.copyFrom(node1FullyQualifiedPodName, constants.ROOT_CONTAINER, `${constants.HEDERA_HAPI_PATH}/data/upgrade/current/${signedKeyFile.name}`, `${config.keysDir}`)
751751
}
752+
753+
if (await this.k8.hasFile(node1FullyQualifiedPodName, constants.ROOT_CONTAINER, `${constants.HEDERA_HAPI_PATH}/data/upgrade/current/application.properties`)) {
754+
await this.k8.copyFrom(node1FullyQualifiedPodName, constants.ROOT_CONTAINER, `${constants.HEDERA_HAPI_PATH}/data/upgrade/current/application.properties`, `${config.stagingDir}/templates`)
755+
}
752756
}
753757

754758
async initializeSetup (config, k8) {

0 commit comments

Comments
 (0)