From bafdb2e7385b00babf05cdca2dcc8c5eddc23ba2 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 4 Oct 2026 13:42:11 +0200 Subject: [PATCH 1/3] nightswatcher: remove debug code --- docker/ubuntu/nightswatcher/nightswatcher.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docker/ubuntu/nightswatcher/nightswatcher.py b/docker/ubuntu/nightswatcher/nightswatcher.py index dedf83a..3c2581f 100644 --- a/docker/ubuntu/nightswatcher/nightswatcher.py +++ b/docker/ubuntu/nightswatcher/nightswatcher.py @@ -304,7 +304,6 @@ def on_post(self, req, _resp): self._ota_update_debounce = None self._ota_update_debounce = gevent.spawn_later(self.OTA_UPDATE_DEBOUNCE_DELAY, lambda: update_queue.put(release)) elif release['tag_name'] != 'ota' and data['action'] == 'published': - Path('body.json').write_bytes(body) update_queue.put(release) From 64d0885d426ebb73e45b5e3785dac3d5a1131281 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 4 Oct 2026 13:42:25 +0200 Subject: [PATCH 2/3] nightswatcher: ensure consistent asset permissions (`u=rw,og=r`) --- docker/ubuntu/nightswatcher/nightswatcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/ubuntu/nightswatcher/nightswatcher.py b/docker/ubuntu/nightswatcher/nightswatcher.py index 3c2581f..d3a358f 100644 --- a/docker/ubuntu/nightswatcher/nightswatcher.py +++ b/docker/ubuntu/nightswatcher/nightswatcher.py @@ -72,6 +72,7 @@ def sha256sum(path): except FileNotFoundError: sha256 = hashlib.sha256(path.read_bytes()).hexdigest() sha256path(path).write_text(f'{sha256} {path.name}\n', encoding='utf-8') + sha256path(path).chmod(0o444) return sha256 def fetch(url, expected_sha256): @@ -138,6 +139,7 @@ def __str__(self): def cp(src, dst): logger.debug('cp %s %s', src, dst) shutil.copy(src, dst) + Path(dst).chmod(0o644) def rm(path): logger.debug('rm %s', path) From a7a87907300ef81222b16f8f555de5c37d3abd8b Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 4 Oct 2026 13:43:27 +0200 Subject: [PATCH 3/3] nightswatcher: bump version to 2.1.0 --- docker/ubuntu/nightswatcher/settings.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/ubuntu/nightswatcher/settings.mk b/docker/ubuntu/nightswatcher/settings.mk index 6d1f85d..52821d7 100644 --- a/docker/ubuntu/nightswatcher/settings.mk +++ b/docker/ubuntu/nightswatcher/settings.mk @@ -1,4 +1,4 @@ -VERSION = 2.0.0 +VERSION = 2.1.0 IMAGE_BASE = docker.io/library/ubuntu:24.04 IMAGE_PLATFORM = arm64 x86_64