Fix writing push event

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-02-05 12:38:46 +01:00
parent b51943d8a1
commit 2c9a1f3fad

View file

@ -364,6 +364,7 @@ readonly class DockerController {
private function writeEventsToFile(array $payload): void {
$eventJson = json_encode($payload);
$eventsFile = DataConst::GetContainerEventsFile();
// Append new event (atomic via LOCK_EX)
file_put_contents($eventsFile, $eventJson . PHP_EOL, FILE_APPEND | LOCK_EX);
}