(params: ResolverParameters, lifecycleCommandOriginMap: LifecycleHooksInstallMap, containerProperties: ContainerProperties, remoteEnv: Promise<Record<string, string>>, secrets: Promise<Record<string, string>>)
| 431 | } |
| 432 | |
| 433 | async function runPostStartCommand(params: ResolverParameters, lifecycleCommandOriginMap: LifecycleHooksInstallMap, containerProperties: ContainerProperties, remoteEnv: Promise<Record<string, string>>, secrets: Promise<Record<string, string>>) { |
| 434 | const markerFile = path.posix.join(containerProperties.userDataFolder, '.postStartCommandMarker'); |
| 435 | const doRun = !!containerProperties.startedAt && await updateMarkerFile(containerProperties.shellServer, markerFile, containerProperties.startedAt); |
| 436 | await runLifecycleCommands(params, lifecycleCommandOriginMap, containerProperties, 'postStartCommand', remoteEnv, secrets, doRun); |
| 437 | } |
| 438 | |
| 439 | async function updateMarkerFile(shellServer: ShellServer, location: string, content: string) { |
| 440 | try { |
no test coverage detected